[jboss-cvs] jboss-seam/examples/ui/view ...
Peter Muir
peter at bleepbleep.org.uk
Sat Feb 24 19:42:34 EST 2007
User: pmuir
Date: 07/02/24 19:42:34
Modified: examples/ui/view selectItems.xhtml
Log:
JBSEAM-880
Revision Changes Path
1.4 +16 -2 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.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- selectItems.xhtml 7 Feb 2007 14:51:18 -0000 1.3
+++ selectItems.xhtml 25 Feb 2007 00:42:34 -0000 1.4
@@ -19,6 +19,7 @@
<p>The example also uses:</p>
<ul>
<li><code>s:span</code></li>
+ <li><code>s:convertEnum</code></li>
<li><code>s:message</code></li>
<li><code>s:decorate</code></li>
<li><code>s:link</code></li>
@@ -33,14 +34,27 @@
<s:message />
</f:facet>
<h:panelGrid columns="2">
+ <h:outputText value="Title" />
+ <s:decorate>
+ <h:selectOneMenu value="#{person.honorific}">
+ <s:selectItems value="#{honorifics}" var="honorific" label="#{honorific.label}"/>
+ <s:convertEnum />
+ </h:selectOneMenu>
+ </s:decorate>
<h:outputText value="Name" />
<s:decorate>
<h:inputText value="#{person.name}" />
</s:decorate>
+ <h:outputText value="Continent of Birth" />
+ <s:decorate>
+ <h:selectOneMenu value="#{person.continent}" converter="#{converters.continentConverter}" required="true">
+ <s:selectItems value="#{continents.resultList}" var="continent" label="#{continent.name}" noSelectionLabel="Please Select..." hideNoSelectionLabel="true"/>
+ </h:selectOneMenu>
+ </s:decorate>
<h:outputText value="Country of Birth" />
<s:decorate>
- <h:selectOneMenu value="#{person.country}" converter="#{converters.countryConverter}" required="true">
- <s:selectItems value="#{countries.resultList}" var="country" label="#{country.name} (#{country.continent.name})" noSelectionLabel="Please Select..." hideNoSelectionLabel="true"/>
+ <h:selectOneMenu value="#{person.country}" converter="#{converters.countryConverter}" 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:decorate>
<h:outputText value="Age" />
More information about the jboss-cvs-commits
mailing list