Re: GoAndClearFilter does not reset filterForm fields

2011-11-29 Thread Sandor Feher
After three weeks stuggling finally I found the problem.
I did not fill my POJO's PK which was a compound id contains three fields
because I did not want to filter for this columns. The result was that my
POJO's equals function always returned true and this is why it did not work
for me. Huh. Just keep going :)


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/GoAndClearFilter-does-not-reset-filterForm-fields-tp3940445p4119403.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: GoAndClearFilter does not reset filterForm fields

2011-10-26 Thread sfeher
Hi Attila,

Here is my dataprovider. (It's ugly and works for just one column).

http://apache-wicket.1842946.n4.nabble.com/file/n3943394/HrpDataProvider.java
HrpDataProvider.java 

TIA

Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/GoAndClearFilter-does-not-reset-filterForm-fields-tp3940445p3943394.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: GoAndClearFilter does not reset filterForm fields

2011-10-26 Thread Attila Király
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 

> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>