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 2013/06/07 09:07:45 UTC

svn commit: r1490523 - /myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/CommonPropertyConstants.java

Author: lu4242
Date: Fri Jun  7 07:07:44 2013
New Revision: 1490523

URL: http://svn.apache.org/r1490523
Log:
MYFACES-3717 Implement "role" attribute in related components and renderers (don't forget to synchronize properties with the one in javax.faces.component.html)

Modified:
    myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/CommonPropertyConstants.java

Modified: myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/CommonPropertyConstants.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/CommonPropertyConstants.java?rev=1490523&r1=1490522&r2=1490523&view=diff
==============================================================================
--- myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/CommonPropertyConstants.java (original)
+++ myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/CommonPropertyConstants.java Fri Jun  7 07:07:44 2013
@@ -104,6 +104,8 @@ public class CommonPropertyConstants
     public static final long MAXLENGTH_PROP   = 0x2000000000L;
     public static final long SIZE_PROP        = 0x4000000000L;
     
+    public static final long ROLE_PROP        = 0x8000000000L;
+    
     public static final Map<String, Long> COMMON_PROPERTIES_KEY_BY_NAME = new HashMap<String, Long>(64,1);
     
     static
@@ -174,6 +176,9 @@ public class CommonPropertyConstants
         COMMON_PROPERTIES_KEY_BY_NAME.put("checked",    CHECKED_PROP);
         COMMON_PROPERTIES_KEY_BY_NAME.put("maxlength",  MAXLENGTH_PROP);
         COMMON_PROPERTIES_KEY_BY_NAME.put("size",       SIZE_PROP);
+        
+        // HTML5 role
+        COMMON_PROPERTIES_KEY_BY_NAME.put("role",   ROLE_PROP);
     }
     
     public static void markProperty(UIComponent component, String name)