]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/WEB-INF/templates/generic/locale_selection_box.tpl
moved template to proper place
[pizzaservice-war.git] / web / WEB-INF / templates / generic / locale_selection_box.tpl
index 16860b2d3cb83c7c4356275329a59ac9bb9c1fac..142e73b4ae6bb8b4b448f26b0dacf1c5a66a3874 100644 (file)
@@ -3,12 +3,12 @@
        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">
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
 
        <h:form id="locale_selection">
-               <h:selectOneMenu value="#{localization.language}" onchange="submit()">
-                       <f:selectItem itemValue="de" itemLabel="Deutsch" />
-                       <f:selectItem itemValue="en" itemLabel="English" />
+               <h:selectOneMenu id="language_selection" value="#{localizationController.language}" onchange="submit()">
+                       <f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" />
+                       <f:selectItems value="#{localizationController.selectableLocalizations}" var="locale" itemValue="#{locale}" itemLabel="#{msg[locale.toString().toUpperCase()]}" />
                </h:selectOneMenu>
        </h:form>
 </ui:composition>