FilterToolbar with composite PK problem
Hi, I have an entity which has composite primary key with two fields. I need to use one of them to filter. In this case I need to fill this field everytime (though I want to filter another field or fields). If I don't fill this field then I get 'Filter field is required' message. So the question is how to solve this problem ? Should I create some helper class with limited number of fields ? Thnx, Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FilterToolbar-with-composite-PK-problem-tp4665751.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
Re: FilterToolbar with composite PK problem
Hi, Here is my entity's PK. In my DataTable I added one field of PK to filter on. columns.add(new TextFilteredPropertyColumnHrpBbstorzs, Number,String(new ResourceModel(beosztottakform.torzsszam), HrpBbstorzsPK.torzsszam, HrpBbstorzsPK.torzsszam)); If this field is part of filterform then I have to fill it when I need to filter something. If I don'n fill this field (but others) then when I click on Filter button I get this field is required. In my case my DataTable's model and FilterForm model are the same. I created a helper class for filtering and that works fine but I don't want to duplicate my entities just for filtering purpose. So I don't think my problem related the bug you've mentioned but I will have a try with 6.16 after it will be released. Thnx., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FilterToolbar-with-composite-PK-problem-tp4665751p4665780.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
Re: FilterToolbar with composite PK problem
Hi, I don't understand what exactly is the problem you face. Is https://issues.apache.org/jira/browse/WICKET-5573 somehow related ? Martin Grigorov Wicket Training and Consulting On Fri, May 9, 2014 at 1:54 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I have an entity which has composite primary key with two fields. I need to use one of them to filter. In this case I need to fill this field everytime (though I want to filter another field or fields). If I don't fill this field then I get 'Filter field is required' message. So the question is how to solve this problem ? Should I create some helper class with limited number of fields ? Thnx, Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FilterToolbar-with-composite-PK-problem-tp4665751.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