You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by romanasu <da...@yahoo.com> on 2012/06/01 16:26:48 UTC

Stateless search page

I'm trying to make a stateless search page with some filters in wicket 1.5.5.
I have some filter objects(check box, drop down, input) and a repeater. When
the page is loaded, i made a search and get some items. When the user change
a filter, i want to update the results(the repeater); or, maybe easier, to
redirect to the search page with some new parameters.

I use an AjaxFormComponentUpdatingBehavior with stateless hint put on true.
The page is staateless, but, there is a new instance of the page created
before calling the onUpdate method. So, a search is made(with the old filter
criteria). Then, when the onUpdate is called, a new search is made, with the
new criteria. So, i end up doing 2 search for each user action.

Any ideas ?
Thanks!

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-search-page-tp4649653.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: Stateless search page

Posted by romanasu <da...@yahoo.com>.
Apparently, if i make the search in onbeforerender, i skip the first useless
search. Nice to find out after many hours...

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-search-page-tp4649653p4649660.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