Hello, Sorry in advance for the possibly naive question.

My Envionment.

SUN RI 1.1_02
Tomahawk 1.5
Server State Saving.

I have the following scenario... 

User performs a search using a number of drop downs / text inputs..etc.  ...
a datatable displays the results at the bottom of the save view.  User
selects a particular row in the datatable and is brought to a summary view
to edit the details of the selected row.  This summary view allows the user
to bounce around the app editing pieces and parts of the summary view.. 
User can cancel the edit action / or confirm the edit action.

User is brought back to the view with the previous search criteria (drop
downs) text inputs.... restored to the point when they left the view and the
search data is also redisplayed and must reflect if the status of the record
was updated.

I'd like an easy way to be able to return to the original view's state..
ie.. drop down options. selected option.. input values.. etc.. without
having to save all the lists and primitive wrappers that back this view
seperately. ie. I could put a bean in session (using various state
maintenance strategies) that wraps all the pieces and parts but if I add
something new to the JSP I then need to modify this bean wrapper also. I'd
rather not have to run all the logic once again to retore the search
critieria as the drop down logic is rather involved and not subject to
change from the time they left the view originally.

Can I simply save a reference to the entire view as faces would say on a
validation error and then after I'm completed with the edit activities and
redirect back to search.. restore the saved search view and then manually
trigger the search again with the restored criteria?

Not sure if this makes sense but it's a problem I'm currently struggeling
with. I'm pretty familiar with JSF and have been working with it for a solid
year but would like to take it to the next level.

Thanks!



-- 
View this message in context: 
http://www.nabble.com/Save---restore-state-of-entire-view--tf2443158.html#a6812010
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to