The moose likes GWT and the fly likes how to store previous searching criteria Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "how to store previous searching criteria" Watch "how to store previous searching criteria" New topic
Author

how to store previous searching criteria

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
there is a panel for user enter searching criteria, then when the user press the search button, the result panel is shown, and if the user close the result panel, the previous searching criteria screen (with previous entered value) should remain there.
I think is there two kind of approach
1) just hidden the searching panel, but not remove it from parent
2) when passing searching criteria to server, store the criteria in session. then each time the searching panel is created, pull the value in session.

is this correct?
how to handle this type of problem?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

If your search panel is not complicated (say beyond a TextBox and a button) why bother hiding it at all?
Else instead of removing, use show/hide


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to store previous searching criteria