As Melinda said earlier you need to use a Panel. The idea is that this way you can use more complex components for filtering, e.g. from-to dates, a Panel with two date fields.
On Thu, Apr 26, 2012 at 1:26 PM, Sandor Feher <sfe...@bluesystem.hu> wrote: > Ok, np. > Here is what I did: > > ----c---- > > IColumn crdCol=new TextFilteredPropertyColumn<HrpContent, String>(new > ResourceModel("contentlisttable.crd"), "crd", "crd") { > > @Override > public Component getFilter(String componentId, FilterForm<?> > form) { > 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; > } > }; > return new DateTextField(componentId,dc); > } > }; > > ----c---- > > Now it complains for this: > > > > Last cause: Component [filter] (path = > [5:datatablecontainer:filterForm:datatable:topToolbars:toolbars:3:filters:3:filter]) > must be applied to a tag of type [input], not: '<td wicket:id="filter" > class="filter-td">' (line 0, column 0) > > Markup > > The problem is in > "jar:file:/X:/mavenrepo/org/apache/wicket/wicket-extensions/1.5.5/wicket-extensions-1.5.5.jar!/org/apache/wicket/extensions/markup/html/repeater/data/table/filter/FilterToolbar.html": > > <td wicket:id="filter" class="filter-td">[filter]</td> > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp4586557p4589406.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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org