you cant replace something like: <div wicket:id="container"><div wicket:id="inner"></div></div> with a label, because then your markup is
<div wicket:id="label"><div wicket:id="inner"></div></div> and labels do not support inner components makes sense? -igor On Nov 27, 2007 7:03 AM, 非 谢 <[EMAIL PROTECTED]> wrote: > hi, > > In wicket1.3-rc1, When I try to replace a WebMarkupContainer that has nested > components with another component in AjaxLink.onClick, wicket says > > "Expected close tag for '<span wicket:id="container">' Possible attempt to > embed component(s) '<span wicket:id="nested-component">' in the body of this > component which discards its body > " > Is this an expected result? I think the above senario is quite common. > Currently I am using a fragment to represent the "default" content of the > container which can be replaced without any complaint but this feels not that > natural. > > _________________________________________________________________ > Discover the new Windows Vista > http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
