setRenderBodyOnly is indeed the way but as you have already found out,
you loose the id required for ajax.
Where would we put the id? there is no element.
If you have another parent element that you can use, you could update
that, or perhaps you can update the ul element.

Maurice

On Fri, Apr 25, 2008 at 12:19 PM, Sam Hough <[EMAIL PROTECTED]> wrote:
>
>  Is there a nice way to make a component that behaves like Panel but replaces
>  the surrogate element AND supports Ajax partial updates?
>
>  So if my parent HTML is:
>
>  &lt;span wicket:id="here" >to be replaced&lt;/span>
>
>
>  and my child panel is:
>
>  &lt;wicket:panel><ul><li>Must only have a single root
>  element</li</ul></wicket:panel>
>
>  my output would be:
>
>  &lt;ul><li>Must only have a single root element</li></ul>
>
>  I've almost got this behaviour by using setRenderBodyOnly(true); but then I
>  loose the id I need for Ajax partial updates.
>
>  Any thoughts?
>
>  Thanks
>
>  Sam
>  --
>  View this message in context: 
> http://www.nabble.com/Panel-that-replaces-surrogate-element-rather-than-contained-within-it-tp16894472p16894472.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to