History and search field

14 views
Skip to first unread message

ale

unread,
Jul 18, 2011, 12:42:25 PM7/18/11
to google-we...@googlegroups.com
Hi everybody,
On my site I have an advanced search panel with about ten texbox or combobox (the filter parameter for the search).
If you search something you will have a list of result, and in each row there is a link to go to the detailed panel of the item.
My problem is that if you go to a detail panel and then you click the back button of the browser, you will come back to the search panel, but the textbox and combox are empty....
There is a way to keep the value of the search filter? (without putting all on the History Token...)

Thanks a lot

Alessandro

Ben Imp

unread,
Jul 18, 2011, 4:56:39 PM7/18/11
to google-we...@googlegroups.com
You could store the value in some kind of persistent application model.  That model would be passed into your presenter on creation, and it could check to see if an existing value has been saved there.  Alternatively, you could hang onto your presenters for re-use later.  I usually opt for the former, as I find its easier to make throwaway presenters.

I suppose you could also chuck it into a cookie.

-Ben
Reply all
Reply to author
Forward
0 new messages