[seam-commits] Seam SVN: r15319 - branches/community/Seam_2_3/examples/ui/ui-web/src/main/webapp.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Oct 30 07:53:30 EDT 2012


Author: manaRH
Date: 2012-10-30 07:53:30 -0400 (Tue, 30 Oct 2012)
New Revision: 15319

Modified:
   branches/community/Seam_2_3/examples/ui/ui-web/src/main/webapp/selectItems.xhtml
Log:
back to s:convert* tags from f:converter

Modified: branches/community/Seam_2_3/examples/ui/ui-web/src/main/webapp/selectItems.xhtml
===================================================================
--- branches/community/Seam_2_3/examples/ui/ui-web/src/main/webapp/selectItems.xhtml	2012-10-30 11:45:09 UTC (rev 15318)
+++ branches/community/Seam_2_3/examples/ui/ui-web/src/main/webapp/selectItems.xhtml	2012-10-30 11:53:30 UTC (rev 15319)
@@ -27,8 +27,7 @@
 			<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 /> -->
+            <s:convertEnum />
 			</h:selectOneMenu>
 		</s:decorate>		
 		
@@ -42,8 +41,7 @@
 			<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 /> -->
+ 				<s:convertEntity />
 			</h:selectOneMenu>
 		</s:decorate>
 		
@@ -51,8 +49,7 @@
 			<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 /> -->
+ 				<s:convertEntity />
 			</h:selectOneRadio>
 		</s:decorate>
 		
@@ -60,8 +57,7 @@
 		  <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 /> -->
+ 		    <s:convertEnum /> 
 		  </h:selectManyCheckbox>
 		</s:decorate>
 	
@@ -87,8 +83,7 @@
 			<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 /> -->
+- 				<s:convertEntity /> 
 			</h:selectManyListbox>
 		</s:decorate>
 	
@@ -97,8 +92,7 @@
 			<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 /> -->
+ 				<s:convertEntity /> 
 			</h:selectOneListbox>
 		</s:decorate>
 		
@@ -116,4 +110,4 @@
 		
 	</h:form>
 </ui:define>
-</ui:composition>
\ No newline at end of file
+</ui:composition>



More information about the seam-commits mailing list