[ofbiz-plugins] branch trunk updated: Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 899d306  Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)
899d306 is described below

commit 899d3061fe3bca950b8fe904f014b5e373d3f96a
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Sat Jul 18 11:15:06 2020 +0200

    Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)
   
    The ecommerce and webpos controller missed an errorpage reference.
    All other controllers either use directly the common-controller or indirectly by
    including controller/s that include the common-controller
---
 ecommerce/webapp/ecommerce/WEB-INF/controller.xml | 2 ++
 webpos/webapp/webpos/WEB-INF/controller.xml       | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
index 8683eda..2aef59e 100644
--- a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
+++ b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
@@ -21,6 +21,8 @@ under the License.
 <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">
     <description>OFBiz: eCommerce Controller Configuration File</description>
+    
+    <errorpage>component://common/webcommon/error/Error.ftl</errorpage>
 
     <handler name="java" type="request" class="org.apache.ofbiz.webapp.event.JavaEventHandler"/>
     <handler name="groovy" type="request" class="org.apache.ofbiz.webapp.event.GroovyEventHandler"/>
diff --git a/webpos/webapp/webpos/WEB-INF/controller.xml b/webpos/webapp/webpos/WEB-INF/controller.xml
index 33918d7..e98bd67 100644
--- a/webpos/webapp/webpos/WEB-INF/controller.xml
+++ b/webpos/webapp/webpos/WEB-INF/controller.xml
@@ -21,6 +21,8 @@
         xmlns="http://ofbiz.apache.org/Site-Conf" xsi:schemaLocation="http://ofbiz.apache.org/Site-Conf http://ofbiz.apache.org/dtds/site-conf.xsd">
     <description>Web Pos Component Site Configuration File</description>
     
+    <errorpage>component://common/webcommon/error/Error.ftl</errorpage>
+    
     <handler name="java" type="request" class="org.apache.ofbiz.webapp.event.JavaEventHandler"/>
     <handler name="service" type="request" class="org.apache.ofbiz.webapp.event.ServiceEventHandler"/>
     <handler name="service-multi" type="request" class="org.apache.ofbiz.webapp.event.ServiceMultiEventHandler"/>