[ofbiz-plugins] branch trunk updated: Improved: Open FTL File from browser (OFBIZ-12018)

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: Open FTL File from browser (OFBIZ-12018)

James Yong-2
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 9c40c67  Improved: Open FTL File from browser (OFBIZ-12018)
9c40c67 is described below

commit 9c40c67e7a45f1cb8e9d13462567fb0eb1c772b6
Author: James Yong <[hidden email]>
AuthorDate: Fri Sep 25 22:25:15 2020 +0800

    Improved: Open FTL File from browser (OFBIZ-12018)
   
    Add request map for ecommerce
---
 ecommerce/webapp/ecommerce/WEB-INF/controller.xml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
index d3401a7..a7c9b86 100644
--- a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
+++ b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
@@ -182,6 +182,14 @@ under the License.
         <response name="success" type="none"/>
     </request-map>
 
+    <!-- open the corresponding FTL file with IDE when the named border is clicked from browser -->
+    <request-map uri="openSourceFile">
+        <security https="false" auth="false"/>
+        <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="openSourceFile"/>
+        <response name="success" type="none" />
+        <response name="error" type="none" />
+    </request-map>
+
     <!-- ShoppingList Requests -->
     <request-map uri="editShoppingList">
         <security auth="true" https="false"/>