[jboss-cvs] jboss-seam/src/ui/META-INF ...
Norman Richards
norman.richards at jboss.com
Tue Dec 12 17:38:26 EST 2006
User: nrichards
Date: 06/12/12 17:38:26
Modified: src/ui/META-INF faces-config.xml seam.taglib.xml
taglib.tld
Log:
JBSEAM-574: enum support
Revision Changes Path
1.24 +27 -10 jboss-seam/src/ui/META-INF/faces-config.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: faces-config.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/META-INF/faces-config.xml,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- faces-config.xml 7 Dec 2006 04:19:18 -0000 1.23
+++ faces-config.xml 12 Dec 2006 22:38:26 -0000 1.24
@@ -450,6 +450,19 @@
</property>
</component>
+ <component>
+ <component-type>org.jboss.seam.ui.EnumItem</component-type>
+ <component-class>org.jboss.seam.ui.EnumItem</component-class>
+ <property>
+ <property-name>enumValue</property-name>
+ <property-class>java.lang.String</property-class>
+ </property>
+ <property>
+ <property-name>label</property-name>
+ <property-class>java.lang.String</property-class>
+ </property>
+ </component>
+
<validator>
<validator-id>org.jboss.seam.ui.ModelValidator</validator-id>
@@ -476,4 +489,8 @@
<converter-class>javax.faces.convert.BigIntegerConverter</converter-class>
</converter>
+ <converter>
+ <converter-id>org.jboss.seam.ui.EnumConverter</converter-id>
+ <converter-class>org.jboss.seam.ui.EnumConverter</converter-class>
+ </converter>
</faces-config>
1.20 +14 -1 jboss-seam/src/ui/META-INF/seam.taglib.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: seam.taglib.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/META-INF/seam.taglib.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- seam.taglib.xml 7 Dec 2006 00:19:15 -0000 1.19
+++ seam.taglib.xml 12 Dec 2006 22:38:26 -0000 1.20
@@ -118,4 +118,17 @@
</converter>
</tag>
+ <tag>
+ <tag-name>enumItem</tag-name>
+ <component>
+ <component-type>org.jboss.seam.ui.EnumItem</component-type>
+ </component>
+ </tag>
+
+ <tag>
+ <tag-name>convertEnum</tag-name>
+ <converter>
+ <converter-id>org.jboss.seam.ui.EnumConverter</converter-id>
+ </converter>
+ </tag>
</facelet-taglib>
1.24 +22 -1 jboss-seam/src/ui/META-INF/taglib.tld
(In the diff below, changes in quantity of whitespace are not shown.)
Index: taglib.tld
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/META-INF/taglib.tld,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- taglib.tld 7 Dec 2006 00:19:15 -0000 1.23
+++ taglib.tld 12 Dec 2006 22:38:26 -0000 1.24
@@ -920,5 +920,26 @@
</attribute>
</tag>
-
+ <tag>
+ <name>convertEnum</name>
+ <tag-class>org.jboss.seam.ui.tag.ConvertEnumTag</tag-class>
+ <body-content>empty</body-content>
+ </tag>
+ <tag>
+ <name>enumItem</name>
+ <tag-class>org.jboss.seam.ui.tag.EnumItemTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <name>enumValue</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>the enum string value</description>
+ </attribute>
+ <attribute>
+ <name>label</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>the select item label</description>
+ </attribute>
+ </tag>
</taglib>
More information about the jboss-cvs-commits
mailing list