[jboss-cvs] jboss-seam/examples/ui/view ...
Peter Muir
peter at bleepbleep.org.uk
Fri Jun 29 12:43:46 EDT 2007
User: pmuir
Date: 07/06/29 12:43:46
Modified: examples/ui/view selectItems.xhtml
Added: examples/ui/view continents.xhtml
Log:
JBSEAM-1528
Revision Changes Path
1.20 +2 -0 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.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- selectItems.xhtml 19 Jun 2007 21:01:45 -0000 1.19
+++ selectItems.xhtml 29 Jun 2007 16:43:46 -0000 1.20
@@ -19,6 +19,8 @@
<li><code>s:decorate</code></li>
</ul>
+ <p><s:link view="/continents.xhtml" value="Edit the continent/country relationship." /></p>
+
<h:form>
<s:decorate template="decorateField.xhtml">
<ui:define name="label">Title</ui:define>
1.1 date: 2007/06/29 16:43:46; author: pmuir; state: Exp;jboss-seam/examples/ui/view/continents.xhtml
Index: continents.xhtml
===================================================================
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:s="http://jboss.com/products/seam/taglib"
template="template.xhtml"
>
<ui:param name="tagName" value="s:selectItems" />
<ui:define name="body">
<p>
Here you can select which countries belong to which continets. This
demonstrates using <code>s:selectItems</code> in a <code>h:dataTable</code>.
</p>
<h:form>
<h:dataTable value="#{continents.dataModel}" var="continent">
<h:column>
<f:facet name="header">
Continent
</f:facet>
<h:outputText value="#{continent.name}" />
</h:column>
<h:column>
<f:facet name="header">
Countries
</f:facet>
<h:selectManyListbox value="#{continent.countries}" size="3">
<s:selectItems value="#{countries.resultList}" var="country" label="#{country.name}" />
<s:convertEntity />
</h:selectManyListbox>
</h:column>
</h:dataTable>
<h:commandButton value="Apply" action="#{personHome.update}">
<s:conversationPropagation type="join" />
</h:commandButton>
</h:form>
</ui:define>
</ui:composition>
More information about the jboss-cvs-commits
mailing list