Author: jleroux
Date: Sun Oct 15 17:12:24 2017
New Revision: 1812223
URL:
http://svn.apache.org/viewvc?rev=1812223&view=revLog:
Fixed: setLocaleFromBrowser request missing for webpos component
(OFBIZ-9847)
I here revert r1812213 and simply add the required setLocaleFromBrowser
request-map, the include of the whole common-controller is not needed
Modified:
ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml
Modified: ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml?rev=1812223&r1=1812222&r2=1812223&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml Sun Oct 15 17:12:24 2017
@@ -19,7 +19,6 @@
<site-conf xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns="
http://ofbiz.apache.org/Site-Conf" xsi:schemaLocation="
http://ofbiz.apache.org/Site-Conf http://ofbiz.apache.org/dtds/site-conf.xsd">
- <include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
<description>Web Pos Component Site Configuration File</description>
<errorpage>/error/error.jsp</errorpage>
@@ -472,6 +471,14 @@
<response name="error" type="view" value="ForgotPassword_step2"/>
</request-map>
<!-- end of Ajax requests -->
+
+ <!-- Set local from user's browser -->
+ <request-map uri="setLocaleFromBrowser">
+ <security https="false" auth="false"/>
+ <event type="service" invoke="setLocaleFromBrowser"/>
+ <response name="success" type="request" value="json"/>
+ <response name="error" type="request" value="json"/>
+ </request-map>
<!-- View Mappings -->
<view-map name="error" page="/error/error.jsp"/>