This is an automated email from the ASF dual-hosted git repository.

jamesyong 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 e7f587d  Improved: Apply multi-block attr to each application 
(OFBIZ-11706)
e7f587d is described below

commit e7f587d8af2e15096ce03ab90caa854f90a51e9b
Author: James Yong <jamesy...@apache.org>
AuthorDate: Sat May 16 19:40:27 2020 +0800

    Improved: Apply multi-block attr to each application (OFBIZ-11706)
    
    Fix regression
---
 ecommerce/webapp/ecommerce/WEB-INF/controller.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml 
b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
index d9047f4..4266838 100644
--- a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
+++ b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
@@ -167,6 +167,19 @@ under the License.
         <response name="success" type="none"/>
     </request-map>
 
+    <!-- Support multi-block="true" in html-template tag -->
+    <request-map uri="getJs" method="get">
+        <security https="false" auth="false"/>
+        <response name="success" type="request" value="js"/>
+        <response name="error" type="request" value="js"/>
+    </request-map>
+
+    <request-map uri="js">
+        <security direct-request="false"/>
+        <event type="java" path="org.apache.ofbiz.common.CommonEvents" 
invoke="jsResponseFromRequest"/>
+        <response name="success" type="none"/>
+    </request-map>
+
     <!-- ShoppingList Requests -->
     <request-map uri="editShoppingList">
         <security auth="true" https="false"/>

Reply via email to