Author: craigmcc
Date: Fri Nov  4 14:03:54 2005
New Revision: 330931

URL: http://svn.apache.org/viewcvs?rev=330931&view=rev
Log:
Map a "class" attribute on an HTML element to the "styleClass" attribute of
the corresponding component.  This is implemented in the "baseHtml" Clay
component definition from which all the specific component implementations
inherit.  This is fine for the JSF standard components (because they all
support styleClass), but might be too aggressive if third party components
will also base their definitions on baseHtml.

Modified:
    struts/shale/trunk/clay-plugin/src/conf/clay-config.xml

Modified: struts/shale/trunk/clay-plugin/src/conf/clay-config.xml
URL: 
http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/conf/clay-config.xml?rev=330931&r1=330930&r2=330931&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/conf/clay-config.xml (original)
+++ struts/shale/trunk/clay-plugin/src/conf/clay-config.xml Fri Nov  4 14:03:54 
2005
@@ -45,7 +45,11 @@
         <set name="onmouseout" bindingType="VB" />  
         <set name="onkeypress" bindingType="VB" />  
         <set name="onkeydown" bindingType="VB" />  
-        <set name="onkeyup" bindingType="VB" />  
+        <set name="onkeyup" bindingType="VB" />
+
+        <!-- Convention mapping "class" attribute to "styleClass" property -->
+        <set name="styleClass" value="@class"/>
+
       </attributes>
    </component>
    



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to