And if you then submit what is suddenly submitted? i take the ... that can't go into the model
johan
On 8/8/06,
Frank Bille <[EMAIL PROTECTED]> wrote:
On 8/7/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:> Yes ... from a template method for easy configuration would be fine. I could
Was not such a good idea after all I just found out as - of course -
that is used as the next input.
Hmm now I have tried to implement it and I'm not sure what you mean? When doing this:
protected Component newLabel(MarkupContainer parent, String componentId, IModel<T> model)
{Label label = new Label(this, componentId, model)
{
private static final long serialVersionUID = 1L;@Override
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
{if (getModelObject() == null)
{
replaceComponentTagBody(markupStream, openTag, defaultNullLabel());
}
else
{
super.onComponentTagBody(markupStream, openTag);
}
}
};
label.setOutputMarkupId(true);
label.add(new LabelAjaxBehavior( ClientEvent.CLICK ));
return label;
}...
/**
* Override this to display a different value when the model object
* is null. Default is <code>...</code>
*
* @return The string which should be displayed when the model object
* is null.
*/
protected String defaultNullLabel()
{
return "...";
}
I don't have any problems. It works quite ok.
Frank
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop