This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes GWT and the fly likes how to store previous searching criteria Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply 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: 234
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: 8434

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


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to store previous searching criteria
 
Similar Threads
Implementing previous searches
restricting access to a jsp
Special characters changing to %something%
how to do the following simple work in GWT
urlyBird search requirement