]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/WEB-INF/templates/generic/gender_selection_box.tpl
Refacturing towards JSF/EJB:
[pizzaservice-war.git] / web / WEB-INF / templates / generic / gender_selection_box.tpl
diff --git a/web/WEB-INF/templates/generic/gender_selection_box.tpl b/web/WEB-INF/templates/generic/gender_selection_box.tpl
new file mode 100644 (file)
index 0000000..18b0d36
--- /dev/null
@@ -0,0 +1,15 @@
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <!--
+       TODO: Missing pre-select of choosen gender
+       //-->
+       <h:selectOneListbox class="select" id="gender" size="1">
+               <ui:repeat var="gender" value="#{Gender.values()}">
+                       <option value="#{gender.name()}">#{gender}</option>
+               </ui:repeat>
+       </h:selectOneListbox>
+</ui:composition>