In wicket you have to assign a Label to an Item or a Link. The
corresponding markup would then be something like:
<li wicket:id="item"><span wicket:id="label"></span></li>
However it is possible to remove the span for the label from the final
markup send to the browser by using label.setRenderBodyOnly(true);
So where you markupfile would look like the above the user would see
<li>some text</li>

Maurice

On Wed, Mar 26, 2008 at 4:01 PM, Jörn Zaefferer
<[EMAIL PROTECTED]> wrote:
> I keep stumbling about components where I'm (afaik) forced to add
>  child components just to set their text content. Common examples are
>  ListView items and Links. I'd like to set the text content of a "li"
>  or "a" element without adding another child component (to give it a
>  wicket:id and add a Label).
>
>  Any solution to that?
>
>  Jörn
>
>  ---------------------------------------------------------------------
>  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