svn commit: r1598914 - in /ofbiz/branches/release13.07: ./ applications/product/webapp/catalog/WEB-INF/controller.xml applications/product/widget/catalog/StoreForms.xml applications/product/widget/catalog/StoreScreens.xml

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

svn commit: r1598914 - in /ofbiz/branches/release13.07: ./ applications/product/webapp/catalog/WEB-INF/controller.xml applications/product/widget/catalog/StoreForms.xml applications/product/widget/catalog/StoreScreens.xml

jleroux@apache.org
Author: jleroux
Date: Sat May 31 20:12:14 2014
New Revision: 1598914

URL: http://svn.apache.org/r1598914
Log:
"Applied fix from trunk for revision: 1598913  "
------------------------------------------------------------------------
r1598913 | jleroux | 2014-05-31 22:10:54 +0200 (sam. 31 mai 2014) | 8 lignes

A patche from Olivier Heintz for "ProductStoreFacilities page does not refresh information after actions are performed" https://issues.apache.org/jira/browse/OFBIZ-5408

The ProductStoreFacilities page does not refresh when actions are performed.  When adding or deleting a facility from the store, the result of either action is not reflected on the page even though both are performed.  A loading icon appears after clicking action buttons/links so AJAX is probably being used.  

Olivier:
bug corrections :
1) areaId was wrong in on-event for edit and in delete button in list
2) replace wrong view-map ListProductStoreFacilityFormOnly by ListProductStoreFacility
------------------------------------------------------------------------


Modified:
    ofbiz/branches/release13.07/   (props changed)
    ofbiz/branches/release13.07/applications/product/webapp/catalog/WEB-INF/controller.xml
    ofbiz/branches/release13.07/applications/product/widget/catalog/StoreForms.xml
    ofbiz/branches/release13.07/applications/product/widget/catalog/StoreScreens.xml

Propchange: ofbiz/branches/release13.07/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1598913

Modified: ofbiz/branches/release13.07/applications/product/webapp/catalog/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/product/webapp/catalog/WEB-INF/controller.xml?rev=1598914&r1=1598913&r2=1598914&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/product/webapp/catalog/WEB-INF/controller.xml (original)
+++ ofbiz/branches/release13.07/applications/product/webapp/catalog/WEB-INF/controller.xml Sat May 31 20:12:14 2014
@@ -2367,7 +2367,7 @@ under the License.
     </request-map>
     <request-map uri="ListProductStoreFacilityFormOnly">
         <security https="true" auth="true"/>
-        <response name="success" type="view" value="ListProductStoreFacilityFormOnly"/>
+        <response name="success" type="view" value="ListProductStoreFacility"/>
     </request-map>
     <request-map uri="editProductStoreFacility"><security https="true" auth="true"/>
         <response name="success" type="view" value="EditProductStoreFacility"/>
@@ -2387,8 +2387,8 @@ under the License.
     <request-map uri="deleteProductStoreFacility">
         <security https="true" auth="true"/>
         <event type="service" invoke="deleteProductStoreFacility"/>
-        <response name="success" type="view" value="ListProductStoreFacilityFormOnly"/>
-        <response name="error" type="view" value="ListProductStoreFacilityFormOnly"/>
+        <response name="success" type="view" value="ListProductStoreFacility"/>
+        <response name="error" type="view" value="ListProductStoreFacility"/>
     </request-map>
 
     <!-- ================ Keyword Thesaurus Requests ================= -->
@@ -3207,7 +3207,6 @@ under the License.
     <view-map name="EditProductStoreVendorShipments" type="screen" page="component://product/widget/catalog/StoreScreens.xml#EditProductStoreVendorShipments"/>
     <view-map name="ProductStoreFacilities" page="component://product/widget/catalog/CommonScreens.xml#ProductStoreFacilities" type="screen"/>
     <view-map name="ListProductStoreFacility" page="component://product/widget/catalog/StoreScreens.xml#ListProductStoreFacility" type="screen"/>
-    <view-map name="ListProductStoreFacilityFormOnly" page="component://product/widget/catalog/StoreScreens.xml#ListProductStoreFacilityFormOnly" type="screen"/>
     <view-map name="EditProductStoreFacility" page="component://product/widget/catalog/StoreScreens.xml#EditProductStoreFacility" type="screen"/>
     <view-map name="EditVendorProduct" type="screen" page="component://product/widget/catalog/ProductScreens.xml#EditVendorProduct"/>
     <view-map name="EditKeywordThesaurus" type="screen" page="component://product/widget/catalog/ThesaurusScreens.xml#EditKeywordThesaurus"/>

Modified: ofbiz/branches/release13.07/applications/product/widget/catalog/StoreForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/product/widget/catalog/StoreForms.xml?rev=1598914&r1=1598913&r2=1598914&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/product/widget/catalog/StoreForms.xml (original)
+++ ofbiz/branches/release13.07/applications/product/widget/catalog/StoreForms.xml Sat May 31 20:12:14 2014
@@ -127,7 +127,7 @@ under the License.
         <field name="fromDate" ><display type="date-time" /></field>
         <field name="thruDate" ><display type="date-time" /></field>
         <field name="deleteLink" title=" " >
-            <hyperlink target="javascript:ajaxUpdateArea('PrdStoreFacilityMgmtArea', 'deleteProductStoreFacility', 'productStoreId=${productStoreId}&amp;facilityId=${facilityId}&amp;fromDate=${fromDate}');"
+            <hyperlink target="javascript:ajaxUpdateArea('PP_ProductStoreFacilityPrdStoreFacilityMgmt00001', 'deleteProductStoreFacility', 'productStoreId=${productStoreId}&amp;facilityId=${facilityId}&amp;fromDate=${fromDate}');"
                target-type="plain" request-confirmation="true" image-location="/images/mini-trash.png" image-title="${uiLabelMap.CommonRemove}">
             </hyperlink>
         </field>
@@ -151,7 +151,7 @@ under the License.
         <field name="submitButton" title="${groovy: productStoreFacility == null ? uiLabelMap.CommonAdd : uiLabelMap.CommonUpdate}" widget-style="smallSubmit">
             <submit button-type="button"/>
         </field>
-        <on-event-update-area event-type="submit" area-id="PrdStoreFacilityMgmtArea" area-target="ListProductStoreFacilityFormOnly?portalPortletId=PrdStoreFacilityMgmt&amp;productStoreId=${parameters.productStoreId}"/>
+        <on-event-update-area event-type="submit" area-id="PP_ProductStoreFacilityPrdStoreFacilityMgmt00001" area-target="ListProductStoreFacilityFormOnly?portalPortletId=PrdStoreFacilityMgmt&amp;productStoreId=${parameters.productStoreId}"/>
      </form>
 
      <!-- ProductStoreGroup Forms -->

Modified: ofbiz/branches/release13.07/applications/product/widget/catalog/StoreScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/product/widget/catalog/StoreScreens.xml?rev=1598914&r1=1598913&r2=1598914&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/product/widget/catalog/StoreScreens.xml (original)
+++ ofbiz/branches/release13.07/applications/product/widget/catalog/StoreScreens.xml Sat May 31 20:12:14 2014
@@ -564,6 +564,8 @@ under the License.
                 <set field="titleProperty" value="ProductStoreFacilityAssocList"/>
                 <set field="tabButtonItem" value="EditProductStoreFacilities"/>
                 <set field="productStoreId" from-field="parameters.productStoreId"/>
+                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
+                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                 <set field="portalPageId" value="ProductStoreFacility"/>
             </actions>
             <widgets>