Maybe you can use org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterToolbar
You need to provide your column definitions as IFilteredColumn in your DataTable.
The rest will be done by html markup. It's in wicket-extension library. Cheers Per Am 26.02.2016 um 23:34 schrieb andre seame:
Hello The DataTableFilterToolbarPage demonstrates the capability of filtering dates for a Datatable. Great. I would like to have an array of <int,String,date1,date2>. Column 1 and 2 are sortable (ASC or DESC). Column 3 and 4 (the dates) are sortable and filterable. I would like to have a different presentation as DataTableFilterToolbarPage does. Instead of having the forms for filtering outside the table, I would like to include it into the TH. <tr><th> int <tr><th> String <tr><th> date1 <input wicke:id="dateFromDate1"> .. <input wicke:id="dateToDate1"> <tr><th> date2 <input wicke:id="dateFromDate2"> .. <input wicke:id="dateToDate2"> In this case the user will type the filtering condition in the header of the column Date1 or Date2. So questions are: * Is it possible to add filtering capabilities to a dataview? If Yes, I can access to the TH cell and had the form information. * Is it possible to modify the content of the cell th Date1 to add the form information. Thanks, PHL
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org