Author: taylor
Date: Thu May 24 15:12:41 2007
New Revision: 541449

URL: http://svn.apache.org/viewvc?view=rev&rev=541449
Log:
https://issues.apache.org/jira/browse/PB-64
correctly restore view in action life cycle thanks to suggestion from Matt 
Bruzek

Modified:
    
portals/bridges/trunk/jsf/src/java/org/apache/portals/bridges/jsf/FacesPortlet.java

Modified: 
portals/bridges/trunk/jsf/src/java/org/apache/portals/bridges/jsf/FacesPortlet.java
URL: 
http://svn.apache.org/viewvc/portals/bridges/trunk/jsf/src/java/org/apache/portals/bridges/jsf/FacesPortlet.java?view=diff&rev=541449&r1=541448&r2=541449
==============================================================================
--- 
portals/bridges/trunk/jsf/src/java/org/apache/portals/bridges/jsf/FacesPortlet.java
 (original)
+++ 
portals/bridges/trunk/jsf/src/java/org/apache/portals/bridges/jsf/FacesPortlet.java
 Thu May 24 15:12:41 2007
@@ -486,6 +486,8 @@
         {
             if (actionRequest)
             {
+                String vi = context.getViewRoot().getViewId();
+                context.getApplication().getViewHandler().restoreView(context, 
vi);
                 getLifecycle().execute(context);
                 if (log.isTraceEnabled())
                 {
@@ -493,7 +495,6 @@
                 }
                 // The view should have been restore.
                 // Pass it to the render request.
-
                 request.getPortletSession().setAttribute(
                         createViewRootKey(context, defaultPage, viewId),
                         context.getViewRoot());



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to