Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi, Yes, sorry for that. --- Last cause: Component [cell] (path = [5:datatablecontainer:filterForm:datatable:body:rows:1:cells:3:cell]) must be applied to a tag of type [input], not: '' (line 0, column 0) Markup The problem is in

Re: FilterForm Date column formatting

2012-04-26 Thread Melinda Dweer
I think the problem is markup for cells is a span. You need to create a panel wicket:panel input wicket:id=dateField/ /wicket:panel .. Your date file code and add that panel to table cell. Regards, Melinda On Thu, Apr 26, 2012 at 8:48 AM, Sandor Feher

Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Ok, I will have try... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp4586557p4589073.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi, If I do it in this way, then all of my cells in that column will change to input textfield. But I only want to change the cell which in the filter form row. Regards, Sandor -- View this message in context:

Re: FilterForm Date column formatting

2012-04-26 Thread Melinda Dweer
Can't use a conditional statement? If filter add panel if not call super.populateItem? On Thu, Apr 26, 2012 at 11:36 AM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, If I do it in this way, then all of my cells in that column will change to input textfield. But I only want to change the cell

Re: FilterForm Date column formatting

2012-04-26 Thread Martin Grigorov
Sorry, I didn't understand that you want to do that for the filter field. Override org.apache.wicket.extensions.markup.html.repeater.data.table.filter.TextFilteredPropertyColumn#getFilter() instead. On Thu, Apr 26, 2012 at 12:36 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, If I do it in

Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Ok, np. Here is what I did: c IColumn crdCol=new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd, crd) { @Override public Component getFilter(String componentId, FilterForm? form) { DateConverter

Re: FilterForm Date column formatting

2012-04-26 Thread Martin Grigorov
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    

[RESOLVED] Re: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi, Works fine now :). Melinda, Martin! Thank you for your help. I really appreciate that! Just for the archive. I add a panel overriding the getFilter method. - IColumn crdCol=new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd, crd) {

Re: FilterForm Date column formatting

2012-04-25 Thread Martin Grigorov
Hi, See org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn#populateItem() You'll need to override that method and add some Date**Field to the item On Wed, Apr 25, 2012 at 4:20 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I need to add date formater and/or

Re: FilterForm Date column formatting

2012-04-25 Thread Sandor Feher
Hi, Thank you for the prompt answer. I had a try but it does not work as I expect. --- IColumn crdCol=new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd, crd) { @Override public void

Re: FilterForm Date column formatting

2012-04-25 Thread Martin Grigorov
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 TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd,