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:form id="form_locale_selection">
+ <h:selectOneMenu styleClass="select" id="language_selection" value="#{localizationController.language}" onchange="submit()">
+ <f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" />
+ <f:selectItems value="#{localizationController.selectableLocalizations}" var="l" itemValue="#{l}" itemLabel="#{msg[l.toString().toUpperCase()]}" />
</h:selectOneMenu>
</h:form>
</ui:composition>