Hi,

to save the state you can do:

StateManager stateManager
    = facesContext.getApplication().getStateManager();
StateManager.SerializedView serializedView
   =  stateManager.saveSerializedView(facesContext);
stateManager.writeState(facesContext, serializedView);

but this may not be enough, you need also to update the state in the
hidden fileds on the client. You may take a look into the sources of
tobagos AjaxPhaseListener [1] how to do this.

Regards,
  Volker

[1] 
http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxPhaseListener.java?view=markup







2007/1/23, Paulo Cesar Silva Reis <[EMAIL PROTECTED]>:
Hi my name is Paul, im new on this list.
I have a problem. When i finish the lifecycle in phse BEFORE Render Response
(using context.responseComplete()), its seem myfaces dont save the modified
view, so in the next request myfaces restore the old view.
What i can do to save the view before exiting?!

Tkz in advance.

--
Paulo Cesar Silva Reis
-------------------------------
Powered by GMAIL

Reply via email to