how to not reset presenter when clicking back button?

51 views
Skip to first unread message

Marius Grama

unread,
May 15, 2012, 4:14:03 PM5/15/12
to gwt-pl...@googlegroups.com
I have a presenter used for setting search parameters (#search) and another one used to display the search results (#searchresult) (based on the search parameters set on the previously specified presenter).

I access the #search presenter by clicking on a menu link from my application and when doing this i expect to have all the fields reseted to their initial values.

When performing a search
#search > #searchresult
and then clicking on the browser the Back button (or Backspace key) I would like to still have the previously set parameters on #search presenter.

Can anybody recommend me an approach on how to handle such a use-case with gwtp?

Christian Goudreau

unread,
May 15, 2012, 4:41:16 PM5/15/12
to gwt-pl...@googlegroups.com
Uhm, this is an unusual use case... you could throw an event while clicking on the menu link to reset the search fields. that way if you hit back, you every fields will still be filled.
--
Christian Goudreau

Marius Grama

unread,
May 15, 2012, 4:57:04 PM5/15/12
to gwt-pl...@googlegroups.com
Good point.

Thanks for the tip,
Marius.


On Tuesday, May 15, 2012 10:41:16 PM UTC+2, Christian Goudreau wrote:
Uhm, this is an unusual use case... you could throw an event while clicking on the menu link to reset the search fields. that way if you hit back, you every fields will still be filled.

Reply all
Reply to author
Forward
0 new messages