]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/widgets/locale_change_widget.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / widgets / locale_change_widget.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         xmlns:p="http://primefaces.org/ui"
8         >
9
10         <h:form>
11                 <p:outputPanel styleClass="ui-g">
12                         <p:outputPanel styleClass="ui-g-12 ui-md-6">
13                                 <p:selectOneMenu value="#{localizationController.localeCode}">
14                                         <p:ajax update="master" />
15
16                                         <f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" itemDisabled="true" />
17
18                                         <f:selectItems
19                                                 value="#{localizationController.supportedLocales}"
20                                                 var="locale"
21                                                 itemValue="#{locale}"
22                                                 itemLabel="#{msg[locale.toString().toUpperCase()]}"
23                                                 />
24                                 </p:selectOneMenu>
25                         </p:outputPanel>
26
27                         <p:outputPanel styleClass="ui-g-12 ui-md-6">
28                                 <p:commandButton
29                                         type="submit"
30                                         actionListener="#{localizationController.doChangeLocale()}"
31                                         value="#{msg.BUTTON_CHANGE_LOCALE}"
32                                         title="#{msg.BUTTON_CHANGE_LOCALE_TITLE}"
33                                         />
34                         </p:outputPanel>
35                 </p:outputPanel>
36         </h:form>
37 </ui:composition>