But you don't say what is the problem

Sandor Feher <sfe...@bluesystem.hu> wrote:

Hi,

Thank you for the prompt answer. I had a try but it does not work as I
expect.

-------------------
IColumn crdCol=new TextFilteredPropertyColumn<HrpContent, String>(new
ResourceModel("contentlisttable.crd"), "crd", "crd") {

@Override
public void populateItem(Item<ICellPopulator&lt;HrpContent>>
item, String componentId, IModel<HrpContent> rowModel) {
DateConverter dc=new DateConverter(true) {

@Override
public String getDatePattern(Locale locale) {
return "YYYY mm dd";
}

@Override
protected DateTimeFormatter getFormat(Locale locale) {
DateTimeFormatter
fm=DateTimeFormat.forPattern("YYYY mm DD");
return fm; 
}
}; 
item.addOrReplace(new DateTextField(componentId,dc));
}

}; 
columns.add(crdCol);

Rgds, Sandor


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp4586557p4587855.html
Sent from the Users forum mailing list archive at Nabble.com.

_____________________________________________

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to