you can also roll your own TextLink very easily:

class textlink extends link {
  public textlink(id, model) {
    super(id, model);
  }

  protected void onComponentTagBody(...) {
    replaceComponentTagBody(..., getModelObjectAsString());
  }
}

this way you don't need a label inside the link.

  Gerolf



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]
>
>

Reply via email to