[jboss-cvs] jboss-seam/examples/ui/view ...

Peter Muir peter at bleepbleep.org.uk
Sat Mar 10 14:09:36 EST 2007


  User: pmuir   
  Date: 07/03/10 14:09:36

  Modified:    examples/ui/view   index.xhtml selectItems.xhtml
  Log:
  EntityConverter
  
  Revision  Changes    Path
  1.2       +1 -1      jboss-seam/examples/ui/view/index.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: index.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/ui/view/index.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- index.xhtml	29 Jan 2007 23:52:49 -0000	1.1
  +++ index.xhtml	10 Mar 2007 19:09:36 -0000	1.2
  @@ -15,7 +15,7 @@
   	<h2>This example shows off some the Seam UI Tags</h2>
   	<ul>
   		<li>
  -			<s:link view="/selectItems.xhtml">
  +			<s:link view="/selectItems.xhtml" propagation="join">
   				<code>s:selectItems</code>
   				<f:param name="personId" value="1" />
   			</s:link>
  
  
  
  1.5       +19 -3     jboss-seam/examples/ui/view/selectItems.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: selectItems.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/ui/view/selectItems.xhtml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- selectItems.xhtml	25 Feb 2007 00:42:34 -0000	1.4
  +++ selectItems.xhtml	10 Mar 2007 19:09:36 -0000	1.5
  @@ -47,15 +47,17 @@
   			</s:decorate>
   			<h:outputText value="Continent of Birth" />
   			<s:decorate>
  -				<h:selectOneMenu value="#{person.continent}"  converter="#{converters.continentConverter}" required="true">
  +				<h:selectOneMenu value="#{person.continent}" required="true">
   					<s:selectItems value="#{continents.resultList}" var="continent" label="#{continent.name}" noSelectionLabel="Please Select..." hideNoSelectionLabel="true"/>
  +					<s:convertEntity />
   				</h:selectOneMenu>
   			</s:decorate>
   			<h:outputText value="Country of Birth" />
   			<s:decorate>
  -				<h:selectOneMenu value="#{person.country}"  converter="#{converters.countryConverter}" required="true" disabled="#{empty person.continent}">
  +				<h:selectOneRadio value="#{person.country}" required="true" disabled="#{empty person.continent}">
   					<s:selectItems value="#{person.continent.countries}" var="country" label="#{country.name} (#{country.continent.name})" noSelectionLabel="Please Select..." hideNoSelectionLabel="true"/>
  -				</h:selectOneMenu>
  +					<s:convertEntity />
  +				</h:selectOneRadio>
   			</s:decorate>
   			<h:outputText value="Age" />
   			<s:decorate>
  @@ -63,6 +65,20 @@
   					<s:selectItems value="#{ages}" var="age" label="#{age}" />
   				</h:selectOneMenu>
   			</s:decorate>
  +			<h:outputText value="Favourite Colours" />
  +			<s:decorate>
  +				<h:selectManyListbox value="#{person.favouriteColours}" >
  +					<s:selectItems value="#{colours.resultList}" var="colour" label="#{colour.name}" />
  +					<s:convertEntity />
  +				</h:selectManyListbox>
  +			</s:decorate>
  +			<h:outputText value="Favourite Book" />
  +			<s:decorate>
  +				<h:selectOneListbox value="#{person.favouriteBook}" >
  +					<s:selectItems value="#{books.resultList}" var="book" label="#{book.name} by #{book.author} (#{book.nationality})" />
  +					<s:convertEntity />
  +				</h:selectOneListbox>
  +			</s:decorate>
   		</h:panelGrid>
   		<h:commandButton value="Apply" action="#{personHome.update}">
   			<s:conversationPropagation type="join" />
  
  
  



More information about the jboss-cvs-commits mailing list