From bcfe82099bc68115fe5fa09b453bcbb1092cfad3 Mon Sep 17 00:00:00 2001 From: Bruno Busco Date: Sat, 16 Oct 2010 11:41:55 +0000 Subject: [PATCH] Used the standard xxxxFormOnly pattern to handle the ajax update of this screen. No need to use this too complicated GenericScreenletAjaxWithMenu stuff. The portlet attributes must not be used to select artifact to be rendered in a portlet. This creates security issues. In next commits I will remove all the GenericPortlet stuff. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023257 13f79535-47bb-0310-9956-ffa450edef68 --- .../product/data/ProductPortletData.xml | 14 ++------ .../webapp/catalog/WEB-INF/controller.xml | 5 +++ .../product/widget/catalog/StoreForms.xml | 2 +- .../product/widget/catalog/StoreScreens.xml | 34 +++++++++++++------ 4 files changed, 33 insertions(+), 22 deletions(-) diff --git a/applications/product/data/ProductPortletData.xml b/applications/product/data/ProductPortletData.xml index 5c0dfeb6f7..ee99164c68 100644 --- a/applications/product/data/ProductPortletData.xml +++ b/applications/product/data/ProductPortletData.xml @@ -30,17 +30,9 @@ - - - - - - - + screenName="ListProductStoreFacility" + screenLocation="component://product/widget/catalog/StoreScreens.xml" + description="List of best selling products of the day"/> diff --git a/applications/product/webapp/catalog/WEB-INF/controller.xml b/applications/product/webapp/catalog/WEB-INF/controller.xml index 0317e7e347..ddac0393b4 100644 --- a/applications/product/webapp/catalog/WEB-INF/controller.xml +++ b/applications/product/webapp/catalog/WEB-INF/controller.xml @@ -2308,6 +2308,10 @@ under the License. + + + + @@ -2846,6 +2850,7 @@ under the License. + diff --git a/applications/product/widget/catalog/StoreForms.xml b/applications/product/widget/catalog/StoreForms.xml index 13a94de217..55deb8a8b8 100644 --- a/applications/product/widget/catalog/StoreForms.xml +++ b/applications/product/widget/catalog/StoreForms.xml @@ -151,6 +151,6 @@ under the License. - + diff --git a/applications/product/widget/catalog/StoreScreens.xml b/applications/product/widget/catalog/StoreScreens.xml index c3b7f6536c..cd7d439dff 100644 --- a/applications/product/widget/catalog/StoreScreens.xml +++ b/applications/product/widget/catalog/StoreScreens.xml @@ -593,16 +593,30 @@ under the License. -
- - - - - - - - -
+
+ + + + + + + + + + +
+
+ +
+ + + + + + + + +