class textlink extends link {
  //constructor from link that takes a model

  protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
        {
                replaceComponentTagBody(markupStream, openTag, 
getModelObjectAsString());
        }
}

obviously if you do this you can no longer have components inside that
link and any markup that is link's body will be replaced.

-igor


On Fri, Mar 14, 2008 at 7:10 AM, Vitaly Tsaplin
<[EMAIL PROTECTED]> wrote:
>    Hi experts,
>
>    Does anyone know how to create a label link in wicket? In other
>  words I need a clickable label or a link which acts as a label taking
>  its text from a model exactly like a wicket's label.
>
>    Vitaly
>
>  ---------------------------------------------------------------------
>  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