Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Since we removed the specialpurpose components (but ecommerce), there…
Browse files Browse the repository at this point in the history
… was an issue with ordermgr js scripts.

The problem was double. It'd have been easy to add the missing "/js:" patch in allowedPaths in the web.xml of birt component from where the js scripts are now expected to be loaded in trunk.
But then you would need to also copy the js scripst there (in birt component). You could not simply move them because for upcoming branches we also need them in ordermgr component (they were there in images/js) else they would miss again.

This commit rather adds them under a simple ordermgr-js new webapp (simple, ie like framework/images, only to load resources) under commonext: applications/commonext/webapp/ordermgr-js to prevent the duplication maintenance hazards.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1612202 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Jul 21, 2014
1 parent c4d09d0 commit bdeaa73
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions applications/commonext/ofbiz-component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,12 @@ under the License.
location="webapp/ofbizsetup"
base-permission="OFBTOOLS,SETUP"
mount-point="/ofbizsetup"/>

<webapp name="ordermgr-js"
title="ordermgr-js"
server="default-server"
location="webapp/ordermgr-js"
mount-point="/ordermgr-js"
app-bar-display="false"/>

</ofbiz-component>
2 changes: 1 addition & 1 deletion applications/order/widget/ordermgr/OrderReturnScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ under the License.
<set field="titleProperty" value="PageTitleReturnHeader"/>
<set field="headerItem" value="return"/>
<set field="tabButtonItem" value="OrderReturnHeader"/>
<set field="layoutSettings.javaScripts[+0]" value="/ordermgr/images/js/return.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/ordermgr-js/return.js" global="true"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/return/ReturnHeader.groovy"/>
</actions>
Expand Down
6 changes: 3 additions & 3 deletions applications/order/widget/ordermgr/OrderViewScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ under the License.
<actions>
<set field="titleProperty" value="OrderViewOrder"/>
<set field="headerItem" value="findorders"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr/images/js/order.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr/images/js/OrderShippingInfo.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr/images/js/geoAutoCompleter.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr-js/order.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr-js/OrderShippingInfo.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderViewWebSecure.groovy"/>
</actions>
Expand Down
2 changes: 1 addition & 1 deletion applications/product/widget/facility/FacilityScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ under the License.
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.ProductReceiveInventory}"/>
<set field="layoutSettings.javaScripts[+0]" value="/ordermgr/images/js/ConvertUom.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/ordermgr-js/ConvertUom.js" global="true"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
Expand Down
4 changes: 2 additions & 2 deletions specialpurpose/ecommerce/widget/CustomerScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ under the License.
<property-map resource="SecurityextUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="PageTitleNewCustomer"/>
<set field="layoutSettings.javaScripts[]" value="/ecommerce/images/profile.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr/images/js/geoAutoCompleter.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
Expand Down Expand Up @@ -616,7 +616,7 @@ under the License.
<set field="partyId" from-field="userLogin.partyId"/>

<set field="layoutSettings.javaScripts[]" value="/ecommerce/images/profile.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr/images/js/geoAutoCompleter.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ViewProfile.groovy"/>
Expand Down
2 changes: 1 addition & 1 deletion specialpurpose/ecommerce/widget/OrderScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ under the License.
<actions>
<set field="titleProperty" value="EcommerceOnePageCheckout"/>
<set field="layoutSettings.javaScripts[]" value="/ecommerce/images/checkoutProcess.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr/images/js/geoAutoCompleter.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditEmailAndTelecomNumber.groovy"/>
Expand Down

0 comments on commit bdeaa73

Please sign in to comment.