]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/widgets/locale_change_widget.tpl
Updated copyright year
[addressbook-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                                         <f:selectItem
15                                                 itemLabel="#{msg.SELECT_LANGUAGE}"
16                                                 noSelectionOption="true"
17                                                 itemDisabled="true"
18                                                 />
19
20                                         <f:selectItems
21                                                 value="#{localizationController.supportedLocales}"
22                                                 var="locale"
23                                                 itemValue="#{locale}"
24                                                 itemLabel="#{msg[locale.toString().toUpperCase()]}"
25                                                 />
26                                 </p:selectOneMenu>
27                         </p:outputPanel>
28
29                         <p:outputPanel styleClass="ui-g-12 ui-md-6">
30                                 <p:commandButton
31                                         type="submit"
32                                         actionListener="#{localizationController.doChangeLocale()}"
33                                         value="#{msg.BUTTON_CHANGE_LOCALE}"
34                                         title="#{msg.BUTTON_CHANGE_LOCALE_TITLE}"
35                                         update="@all"
36                                         />
37                         </p:outputPanel>
38                 </p:outputPanel>
39         </h:form>
40 </ui:composition>