- it is a jQuery-powered form, so need to take jQuery's submit() version instead
of DOM document's
Signed-off-by: Roland Häder <roland@mxchange.org>
<h:form id="form-change-locale">
<p:panelGrid columns="2" layout="grid">
<h:panelGroup layout="block">
- <p:selectOneMenu value="#{localizationController.localeCode}" onchange="submit()">
+ <p:selectOneMenu value="#{localizationController.localeCode}" onchange="$('#form-change-locale').submit()">
<f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" itemDisabled="true" />
<f:selectItems value="#{localizationController.supportedLocales}" var="locale" itemValue="#{locale}" itemLabel="#{msg[locale.toString().toUpperCase()]}" />
</p:selectOneMenu>