]> git.mxchange.org Git - addressbook-war.git/commitdiff
It must be a writable property and the class Locale doesn't have it (language)
authorRoland Haeder <roland@mxchange.org>
Mon, 4 Apr 2016 17:08:19 +0000 (19:08 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 4 Apr 2016 17:08:19 +0000 (19:08 +0200)
web/WEB-INF/templates/base.tpl
web/WEB-INF/templates/generic/locale_selection_box.tpl

index a180370d1096b8536f80e39ce843aa50c3aa5189..3b6ccd29f3701e96b49dd6573155c5b72dc0efd6 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <html
-       lang="#{localization.locale.language}" xml:lang="#{localization.locale.language}"
+       lang="#{localization.language}" xml:lang="#{localization.language}"
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
index 0dc84df9a9adc768c6d163468909437b31ff730b..16860b2d3cb83c7c4356275329a59ac9bb9c1fac 100644 (file)
@@ -6,7 +6,7 @@
        xmlns:ui="http://java.sun.com/jsf/facelets">
 
        <h:form id="locale_selection">
-               <h:selectOneMenu value="#{localization.locale.language}" onchange="submit()">
+               <h:selectOneMenu value="#{localization.language}" onchange="submit()">
                        <f:selectItem itemValue="de" itemLabel="Deutsch" />
                        <f:selectItem itemValue="en" itemLabel="English" />
                </h:selectOneMenu>