Author: jleroux
Date: Sat May 31 20:10:54 2014 New Revision: 1598913 URL: http://svn.apache.org/r1598913 Log: 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/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml ofbiz/trunk/applications/product/widget/catalog/StoreForms.xml ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml?rev=1598913&r1=1598912&r2=1598913&view=diff ============================================================================== --- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml (original) +++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml Sat May 31 20:10:54 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/trunk/applications/product/widget/catalog/StoreForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/StoreForms.xml?rev=1598913&r1=1598912&r2=1598913&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/StoreForms.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/StoreForms.xml Sat May 31 20:10:54 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}&facilityId=${facilityId}&fromDate=${fromDate}');" + <hyperlink target="javascript:ajaxUpdateArea('PP_ProductStoreFacilityPrdStoreFacilityMgmt00001', 'deleteProductStoreFacility', 'productStoreId=${productStoreId}&facilityId=${facilityId}&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&productStoreId=${parameters.productStoreId}"/> + <on-event-update-area event-type="submit" area-id="PP_ProductStoreFacilityPrdStoreFacilityMgmt00001" area-target="ListProductStoreFacilityFormOnly?portalPortletId=PrdStoreFacilityMgmt&productStoreId=${parameters.productStoreId}"/> </form> <!-- ProductStoreGroup Forms --> Modified: ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml?rev=1598913&r1=1598912&r2=1598913&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml Sat May 31 20:10:54 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> |
Free forum by Nabble | Edit this page |