You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2009/04/14 22:06:14 UTC

svn commit: r764941 - /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java

Author: matzew
Date: Tue Apr 14 20:06:13 2009
New Revision: 764941

URL: http://svn.apache.org/viewvc?rev=764941&view=rev
Log:
MYFACES-2197 - ExceptionQueuedEventContext todos \n thx to Michael Concini

Modified:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java?rev=764941&r1=764940&r2=764941&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java Tue Apr 14 20:06:13 2009
@@ -34,11 +34,8 @@
  */
 public class ExceptionQueuedEventContext implements SystemEventListenerHolder
 {
-    // TODO: DEFINE - Spec doesn't define any value for this constant
-    public static final String IN_AFTER_PHASE_KEY = "";
-
-    // TODO: DEFINE - Spec doesn't define any value for this constant
-    public static final String IN_BEFORE_PHASE_KEY = "";
+    public static final String IN_AFTER_PHASE_KEY = "ExceptionQueuedEventContext.IN_AFTER_PHASE_KEY";
+    public static final String IN_BEFORE_PHASE_KEY = "ExceptionQueuedEventContext.IN_BEFORE_PHASE_KEY";
     
     private Map<Object, Object> _attributes;
     private UIComponent _component;
@@ -105,13 +102,11 @@
     
     public boolean inAfterPhase()
     {
-        // TODO: IMPLEMENT HERE
-        return false;
+        return (_attributes != null && _attributes.containsKey(IN_AFTER_PHASE_KEY));
     }
     
     public boolean inBeforePhase()
     {
-        // TODO: IMPLEMENT HERE
-        return false;
+        return (_attributes != null && _attributes.containsKey(IN_BEFORE_PHASE_KEY));
     }
 }