Hi Sandor, Just tried filtering on a modified wicket-examples / DataTablePage and the filter form clearing worked. Even without subclassing GoAndClearFilter. Maybe the problem is in your dataprovider implementation. How did you implement the IFilterStateLocator interface?
Regards, Attila 2011/10/26 sfeher <[email protected]> > Hi, > > I have dig the archives for the solution but did not find anything which > would be useful for me. > My problem is that my clean button does not clean my filterForms's fields. > I have just started to code in wicket so please forgive me for stupid > questions > Thank you in advance! > > Sandor > > -----snippet--- > > @Override > public Component getFilter(String string, final FilterForm<?> > ff) { > return new GoAndClearFilter(string, ff,new > ResourceModel("edituserform.filter"),new > ResourceModel("edituserform.clear")) { > > > @Override > protected void onClearSubmit(Button button) { > Form<?> form=button.getForm(); > form.clearInput(); > super.onClearSubmit(button); > } > }; > }; > -----snippet--- > > http://apache-wicket.1842946.n4.nabble.com/file/n3940445/AdminPage.java > AdminPage.java > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/GoAndClearFilter-does-not-reset-filterForm-fields-tp3940445p3940445.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
