myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1153010 - /myfaces/core/branches/1.2.x/api/src/main/java/javax/faces/component/UICommand.java
Date Tue, 02 Aug 2011 03:24:05 GMT
Author: lu4242
Date: Tue Aug  2 03:24:05 2011
New Revision: 1153010

URL: http://svn.apache.org/viewvc?rev=1153010&view=rev
Log:
MYFACES-3255 UICommand.queueEvent description changed since 2.0

Modified:
    myfaces/core/branches/1.2.x/api/src/main/java/javax/faces/component/UICommand.java

Modified: myfaces/core/branches/1.2.x/api/src/main/java/javax/faces/component/UICommand.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1.2.x/api/src/main/java/javax/faces/component/UICommand.java?rev=1153010&r1=1153009&r2=1153010&view=diff
==============================================================================
--- myfaces/core/branches/1.2.x/api/src/main/java/javax/faces/component/UICommand.java (original)
+++ myfaces/core/branches/1.2.x/api/src/main/java/javax/faces/component/UICommand.java Tue
Aug  2 03:24:05 2011
@@ -134,13 +134,17 @@ public class UICommand extends UICompone
     {
         if (event != null && event instanceof ActionEvent)
         {
-            if (isImmediate())
+            UIComponent component = event.getComponent();
+            if (component instanceof ActionSource)
             {
-                event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
-            }
-            else
-            {
-                event.setPhaseId(PhaseId.INVOKE_APPLICATION);
+                if (((ActionSource)component).isImmediate())
+                {
+                    event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+                }
+                else
+                {
+                    event.setPhaseId(PhaseId.INVOKE_APPLICATION);
+                }
             }
         }
         super.queueEvent(event);



Mime
View raw message