[jboss-cvs] jboss-seam/examples/ui/view ...
Peter Muir
peter at bleepbleep.org.uk
Wed Aug 1 07:49:57 EDT 2007
User: pmuir
Date: 07/08/01 07:49:57
Modified: examples/ui/view continents.xhtml
Log:
Bug in ui example
Revision Changes Path
1.2 +9 -9 jboss-seam/examples/ui/view/continents.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: continents.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/ui/view/continents.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- continents.xhtml 29 Jun 2007 16:43:46 -0000 1.1
+++ continents.xhtml 1 Aug 2007 11:49:57 -0000 1.2
@@ -8,31 +8,31 @@
<ui:param name="tagName" value="s:selectItems" />
<ui:define name="body">
<p>
- Here you can select which countries belong to which continets. This
+ Here you can select which continent a country is in. This
demonstrates using <code>s:selectItems</code> in a <code>h:dataTable</code>.
</p>
<h:form>
- <h:dataTable value="#{continents.dataModel}" var="continent">
+ <h:dataTable value="#{countries.dataModel}" var="country">
<h:column>
<f:facet name="header">
- Continent
+ Country
</f:facet>
- <h:outputText value="#{continent.name}" />
+ <h:outputText value="#{country.name}" />
</h:column>
<h:column>
<f:facet name="header">
- Countries
+ Continent
</f:facet>
- <h:selectManyListbox value="#{continent.countries}" size="3">
- <s:selectItems value="#{countries.resultList}" var="country" label="#{country.name}" />
+ <h:selectOneMenu value="#{country.continent}">
+ <s:selectItems value="#{continents.resultList}" var="continent" label="#{continent.name}" />
<s:convertEntity />
- </h:selectManyListbox>
+ </h:selectOneMenu>
</h:column>
</h:dataTable>
- <h:commandButton value="Apply" action="#{personHome.update}">
+ <h:commandButton value="Apply">
<s:conversationPropagation type="join" />
</h:commandButton>
More information about the jboss-cvs-commits
mailing list