myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r527102 - in /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle: ApplyRequestValuesExecutor.java ProcessValidationsExecutor.java UpdateModelValuesExecutor.java
Date Tue, 10 Apr 2007 12:21:28 GMT
Author: weber
Date: Tue Apr 10 05:21:27 2007
New Revision: 527102

URL: http://svn.apache.org/viewvc?view=rev&rev=527102
Log:
TOBAGO-312 (Integrate handling of ajax requests into standard lifecycle)
  code cleanup

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java?view=diff&rev=527102&r1=527101&r2=527102
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java
Tue Apr 10 05:21:27 2007
@@ -17,6 +17,8 @@
  * limitations under the License.
  */
 
+import static javax.faces.event.PhaseId.APPLY_REQUEST_VALUES;
+
 import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
 import org.apache.myfaces.tobago.component.ComponentUtil;
 import org.apache.myfaces.tobago.component.UIPage;
@@ -92,7 +94,7 @@
       }
 
       UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
-      viewRoot.broadcastEventsForPhase(facesContext, PhaseId.APPLY_REQUEST_VALUES);
+      viewRoot.broadcastEventsForPhase(facesContext, APPLY_REQUEST_VALUES);
 
     } else {
       facesContext.getViewRoot().processDecodes(facesContext);
@@ -101,6 +103,6 @@
   }
 
   public PhaseId getPhase() {
-    return PhaseId.APPLY_REQUEST_VALUES;
+    return APPLY_REQUEST_VALUES;
   }
 }

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java?view=diff&rev=527102&r1=527101&r2=527102
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java
Tue Apr 10 05:21:27 2007
@@ -17,7 +17,10 @@
  * limitations under the License.
  */
 
+import static javax.faces.event.PhaseId.PROCESS_VALIDATIONS;
+
 import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
+import org.apache.myfaces.tobago.component.UIViewRoot;
 
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
@@ -35,6 +38,8 @@
       for (UIComponent ajaxComponent : ajaxComponents) {
         ajaxComponent.processValidators(facesContext);
       }
+      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
+      viewRoot.broadcastEventsForPhase(facesContext, PROCESS_VALIDATIONS);
     } else {
     facesContext.getViewRoot().processValidators(facesContext);
     }
@@ -42,6 +47,6 @@
   }
 
   public PhaseId getPhase() {
-    return PhaseId.PROCESS_VALIDATIONS;
+    return PROCESS_VALIDATIONS;
   }
 }

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java?view=diff&rev=527102&r1=527101&r2=527102
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java
Tue Apr 10 05:21:27 2007
@@ -17,7 +17,10 @@
  * limitations under the License.
  */
 
+import static javax.faces.event.PhaseId.UPDATE_MODEL_VALUES;
+
 import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
+import org.apache.myfaces.tobago.component.UIViewRoot;
 
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
@@ -36,6 +39,8 @@
       for (UIComponent ajaxComponent : ajaxComponents) {
         ajaxComponent.processUpdates(facesContext);
       }
+      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
+      viewRoot.broadcastEventsForPhase(facesContext, UPDATE_MODEL_VALUES);
     } else {
       facesContext.getViewRoot().processUpdates(facesContext);
     }
@@ -43,6 +48,6 @@
   }
 
   public PhaseId getPhase() {
-    return PhaseId.UPDATE_MODEL_VALUES;
+    return UPDATE_MODEL_VALUES;
   }
 }



Mime
View raw message