myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r906170 - /myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
Date Wed, 03 Feb 2010 18:48:28 GMT
Author: lu4242
Date: Wed Feb  3 18:48:28 2010
New Revision: 906170

URL: http://svn.apache.org/viewvc?rev=906170&view=rev
Log:
restore RendererUtils.NOTHING constant because it is used in tomahawk

Modified:
    myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java

Modified: myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java?rev=906170&r1=906169&r2=906170&view=diff
==============================================================================
--- myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
(original)
+++ myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
Wed Feb  3 18:48:28 2010
@@ -81,6 +81,20 @@
 
     public static final String SELECT_ITEM_LIST_ATTR = RendererUtils.class.getName() + ".LIST";
     public static final String EMPTY_STRING = "";
+    //This constant is no longer used by UISelectOne/UISelectMany instances
+    public static final Object NOTHING = new Serializable() {
+        public boolean equals(final Object o)
+        {
+            if (o != null)
+            {
+                if (o.getClass().equals(this.getClass()))
+                {
+                    return true;
+                }
+            }
+            return false;
+        }
+    };
 
     public static final String ACTION_FOR_LIST = "org.apache.myfaces.ActionForList";
     public static final String ACTION_FOR_PHASE_LIST = "org.apache.myfaces.ActionForPhaseList";



Mime
View raw message