You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/05/16 07:13:52 UTC
svn commit: r775414 -
/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/RestoreViewExecutor.java
Author: lu4242
Date: Sat May 16 05:13:51 2009
New Revision: 775414
URL: http://svn.apache.org/viewvc?rev=775414&view=rev
Log:
MYFACES-2160 The action in tr:commandButton is not fired if you use the trinidad jsf library (in 1.1.5 it works).
Modified:
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/RestoreViewExecutor.java
Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/RestoreViewExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/RestoreViewExecutor.java?rev=775414&r1=775413&r2=775414&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/RestoreViewExecutor.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/RestoreViewExecutor.java Sat May 16 05:13:51 2009
@@ -19,6 +19,7 @@
package org.apache.myfaces.lifecycle;
import java.io.IOException;
+import java.util.Map;
import javax.faces.FacesException;
import javax.faces.application.Application;
@@ -108,7 +109,9 @@
* <code>false</code> otherwise
*/
private boolean isPostback(FacesContext facesContext) {
- return facesContext.getExternalContext().getRequestParameterMap().containsKey(HtmlResponseStateManager.STANDARD_STATE_SAVING_PARAM);
+ Map requestParameterMap = facesContext.getExternalContext().getRequestParameterMap();
+ return (requestParameterMap.containsKey(HtmlResponseStateManager.STANDARD_STATE_SAVING_PARAM) ||
+ requestParameterMap.containsKey("org.apache.myfaces.trinidad.faces.STATE"));
}
public PhaseId getPhase() {