public abstract class LabelLink extends Link {
    private IModel labelModel;

    public LabelLink(String id, IModel linkModel, IModel labelModel) {
        super(id, linkModel);
        this.labelModel = labelModel;
    }
        protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
        {
                replaceComponentTagBody(markupStream, openTag,
labelModel.getObject().toString());
        }
}



maybe we should add this to our classes (core or extentions)
so that we don't get this same question over and over again..

johan
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to