We use this for formatting dates, numbers, etc.: public class MessageFormatColumn<T> extends PropertyColumn<T> { private final String pattern;
public MessageFormatColumn(IModel<String> displayModel, String propertyExpression, String pattern) { super(displayModel, propertyExpression); this.pattern = pattern; } public MessageFormatColumn(IModel<String> displayModel, String sortProperty, String propertyExpression, String pattern) { super(displayModel, sortProperty, propertyExpression); this.pattern = pattern; } @Override protected IModel<?> createLabelModel(IModel<T> itemModel) { IModel<?> superModel = super.createLabelModel(itemModel); return new Model<String>(MessageFormat.format(pattern, superModel.getObject())); } } On Mon, Oct 18, 2010 at 1:33 PM, Shelli Orton <shelli.or...@sjrb.ca> wrote: > Hi, > > Is there a way to apply a DateConverter to a PropertyColumn used in a > DefaultDataTable (and AjaxFallbackDefaultDataTable)? > > Thanks! > > Shelli > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org