You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by heapifyman <he...@gmail.com> on 2012/09/07 14:55:05 UTC

Re: Apache wicket cookbook ch5 - Filtering form example

Turn the submit button into an AjaxButton:

<input type="submit" wicket:id="submit" value="search"/>

form.add(new AjaxButton("submit", form) {...}

and in the button's onSubmit method add the table to the AjaxRequestTarget.
I believe that should do it.



2012/9/7 lucast <lu...@hotmail.com>

> Dear Forum,
> For those of you familiar with the content of Apache wicket cookbook. There
> is a wonderful example for filtering data tables on chapter 5 (recipe0502),
> When I click search, the entire page is refreshed. The main question I have
> about this is:
>
> Is there a way to implement this using ajax so that only the result table
> is
> refreshed/repainted?
>
> Thanks in advance,
> Lucas
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-cookbook-ch5-Filtering-form-example-tp4651836.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Apache wicket cookbook ch5 - Filtering form example

Posted by lucast <lu...@hotmail.com>.
It works like a charm!
Thanks



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-cookbook-ch5-Filtering-form-example-tp4651836p4651839.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org