Author: manaRH
Date: 2012-10-19 09:48:14 -0400 (Fri, 19 Oct 2012)
New Revision: 15309
Modified:
branches/enterprise/WFK-2_1/examples/ui/ui-web/src/main/webapp/selectItems.xhtml
Log:
back to s:convert*
Modified:
branches/enterprise/WFK-2_1/examples/ui/ui-web/src/main/webapp/selectItems.xhtml
===================================================================
---
branches/enterprise/WFK-2_1/examples/ui/ui-web/src/main/webapp/selectItems.xhtml 2012-10-19
13:22:24 UTC (rev 15308)
+++
branches/enterprise/WFK-2_1/examples/ui/ui-web/src/main/webapp/selectItems.xhtml 2012-10-19
13:48:14 UTC (rev 15309)
@@ -27,8 +27,9 @@
<ui:define name="label">Title</ui:define>
<h:selectOneMenu value="#{person.honorific}">
<s:selectItems value="#{honorifics}" var="honorific"
label="#{honorific.label}" noSelectionLabel="Please select" />
- <f:converter converterId="org.jboss.seam.ui.EnumConverter" />
-<!-- look above how JSF 2 changed, no need to create custom Tag <s:convertEnum
/> -->
+ <!-- no need to use custom Tag s:convertEnum
+ <f:converter converterId="org.jboss.seam.ui.EnumConverter" />-->
+ <s:convertEnum />
</h:selectOneMenu>
</s:decorate>
@@ -42,8 +43,8 @@
<ui:define name="label">Continent of Birth</ui:define>
<h:selectOneMenu value="#{personHome.instance.continent}"
required="true" id="continent">
<s:selectItems value="#{continents.resultList}"
var="continent" label="#{continent.name}"
noSelectionLabel="Please Select..."/>
- <f:converter converterId="org.jboss.seam.ui.EntityConverter" />
-<!-- <s:convertEntity /> -->
+<!-- <f:converter converterId="org.jboss.seam.ui.EntityConverter"
/> -->
+ <s:convertEntity />
</h:selectOneMenu>
</s:decorate>
@@ -51,8 +52,8 @@
<ui:define name="label">Country of Birth</ui:define>
<h:selectOneRadio value="#{personHome.instance.country}"
required="true" disabled="#{empty person.continent}">
<s:selectItems value="#{personHome.instance.continent.countries}"
var="country" label="#{country.name} (#{country.continent.name})"
noSelectionLabel="Please Select..." hideNoSelectionLabel="true"
converter="org.jboss.seam.ui.EntityConverter"/>
- <f:converter converterId="org.jboss.seam.ui.EntityConverter" />
-<!-- <s:convertEntity /> -->
+<!-- <f:converter converterId="org.jboss.seam.ui.EntityConverter"
/> -->
+ <s:convertEntity />
</h:selectOneRadio>
</s:decorate>
@@ -60,8 +61,8 @@
<ui:define name="label">Roles</ui:define>
<h:selectManyCheckbox value="#{person.roles}" required="true"
collectionType="java.util.ArrayList">
<s:selectItems value="#{roles}" var="role"
label="#{role.name}"/>
- <f:converter converterId="org.jboss.seam.ui.EnumConverter" />
-<!-- <s:convertEnum /> -->
+<!-- <f:converter converterId="org.jboss.seam.ui.EnumConverter"
/> -->
+ <s:convertEnum />
</h:selectManyCheckbox>
</s:decorate>
@@ -87,8 +88,8 @@
<ui:define name="description">A colour is an entity</ui:define>
<h:selectManyListbox value="#{personHome.instance.favouriteColours}"
collectionType="java.util.ArrayList">
<s:selectItems value="#{colours.resultList}" var="colour"
label="#{colour.name}"/>
- <f:converter converterId="org.jboss.seam.ui.EntityConverter" />
-<!-- <s:convertEntity /> -->
+<!-- <f:converter converterId="org.jboss.seam.ui.EntityConverter"
/> -->
+ <s:convertEntity />
</h:selectManyListbox>
</s:decorate>
@@ -97,8 +98,8 @@
<ui:define name="description">A book has a composite
key</ui:define>
<h:selectOneListbox value="#{person.favouriteBook}" >
<s:selectItems value="#{books.resultList}" var="book"
label="#{book.name} by #{book.author} (#{book.nationality})"/>
- <f:converter converterId="org.jboss.seam.ui.EntityConverter" />
-<!-- <s:convertEntity /> -->
+<!-- <f:converter converterId="org.jboss.seam.ui.EntityConverter"
/> -->
+ <s:convertEntity />
</h:selectOneListbox>
</s:decorate>
Show replies by date