Kai Mütz schrieb:
rzechner <mailto:[EMAIL PROTECTED]> wrote:
Hello!

I am not sure about how to correctly use the DateLabel in a
AjaxFallbackDefaultDataTable. The code below is oriented on the
samples found in
http://www.wicket-library.com/wicket-examples/repeater/
I want to display a table of  events (id, name, dateBegin, dateEnd)
which can also be selected. But my use of the DateLabel seems ...
*ehem* unelegently to me, but it works. What would be a simple and
elegant solution to display a Date object in a table?


I use something like:

public void populateItem(final Item item, final String componentId, final
IModel model) {
        item.add(DateLabel.forDateStyle(componentId, new
PropertyModel(model.getObject(), "dateBegin"), "SS"));
}

HTH, Kai

*sigh* stupid me, thanks a lot!

regards, roman

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to