]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/generic/locale_selection_box.tpl
Continued a bit: (please cherry-pick)
[addressbook-war.git] / web / WEB-INF / templates / generic / locale_selection_box.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <h:form id="form_locale_selection">
9                 <h:selectOneMenu id="language_selection" value="#{localizationController.language}" onchange="submit()">
10                         <f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" />
11                         <f:selectItems value="#{localizationController.selectableLocalizations}" var="locale" itemValue="#{locale}" itemLabel="#{msg[locale.toString().toUpperCase()]}" />
12                 </h:selectOneMenu>
13         </h:form>
14 </ui:composition>