You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/04/01 20:13:18 UTC
svn commit: r760990 - in /ofbiz/trunk: applications/content/widget/compdoc/
applications/product/widget/catalog/ applications/product/widget/facility/
specialpurpose/mypage/widget/ specialpurpose/myportal/widget/
Author: jleroux
Date: Wed Apr 1 18:13:18 2009
New Revision: 760990
URL: http://svn.apache.org/viewvc?rev=760990&view=rev
Log:
Securing URLs, link element in screens and menus : 17th set + tabs to 4 spaces
Modified:
ofbiz/trunk/applications/content/widget/compdoc/CompDocMenus.xml
ofbiz/trunk/applications/product/widget/catalog/Menus.xml
ofbiz/trunk/applications/product/widget/facility/Menus.xml
ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml
ofbiz/trunk/specialpurpose/myportal/widget/MyPortalMenus.xml
Modified: ofbiz/trunk/applications/content/widget/compdoc/CompDocMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/compdoc/CompDocMenus.xml?rev=760990&r1=760989&r2=760990&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/widget/compdoc/CompDocMenus.xml (original)
+++ ofbiz/trunk/applications/content/widget/compdoc/CompDocMenus.xml Wed Apr 1 18:13:18 2009
@@ -133,7 +133,10 @@
<condition>
<if-compare-field field="mostRecentRevisionSeqId" operator="equals" to-field="rootContentRevisionSeqId"/>
</condition>
- <link target="AddChildCompDocTemplate?rootContentId=${contentId}&sequenceNum=9999"/> <!-- rootContentRevisionSeqId=${rootContentRevisionSeqId}& -->
+ <link target="AddChildCompDocTemplate">
+ <parameter param-name="rootContentId" from-field="contentId"/>
+ <parameter param-name="sequenceNum" value="9999"/>
+ </link> <!-- rootContentRevisionSeqId=${rootContentRevisionSeqId}& -->
</menu-item>
<menu-item name="latest" title="${uiLabelMap.ContentCompDocCurrentTemplate}">
<condition>
@@ -176,7 +179,10 @@
</menu-item>
<!-- only one level for now, ie don't worry about an hierarchy, still not sure what that will mean or look like
<menu-item name="child" title="+Child">
- <link target="AddChildCompDocTemplate?contentIdTo=${contentId}&sequenceNum=9999"/>
+ <link target="AddChildCompDocTemplate">
+ <parameter param-name="contentIdTo" from-field="contentId"/>
+ <parameter param-name="sequenceNum" value="9999"/>
+ </link>
</menu-item>
-->
<menu-item name="bef" title="${uiLabelMap.ContentCompDocBefore}">
Modified: ofbiz/trunk/applications/product/widget/catalog/Menus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/Menus.xml?rev=760990&r1=760989&r2=760990&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/Menus.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/Menus.xml Wed Apr 1 18:13:18 2009
@@ -214,7 +214,10 @@
<link target="EditProductFacilityLocations?productId=${productId}"/>
</menu-item>
<menu-item name="EditProductInventoryItems" title="${uiLabelMap.ProductInventory}">
- <link target="EditProductInventoryItems?productId=${productId}&showAllFacilities=Y"/>
+ <link target="EditProductInventoryItems">
+ <parameter param-name="productId" from-field="productId"/>
+ <parameter param-name="showAllFacilities" value="Y"/>
+ </link>
</menu-item>
<menu-item name="EditSupplierProduct" title="${uiLabelMap.ProductSuppliers}">
<link target="EditProductSuppliers?productId=${productId}"/>
Modified: ofbiz/trunk/applications/product/widget/facility/Menus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/Menus.xml?rev=760990&r1=760989&r2=760990&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/Menus.xml (original)
+++ ofbiz/trunk/applications/product/widget/facility/Menus.xml Wed Apr 1 18:13:18 2009
@@ -91,10 +91,16 @@
<link target="Scheduling?facilityId=${facilityId}"/>
</menu-item>
<menu-item name="FindShipmentIn" title="${uiLabelMap.ProductIncomingShipments}">
- <link target="FindShipment?destinationFacilityId=${facilityId}&lookupFlag=Y"/>
+ <link target="FindShipment">
+ <parameter param-name="destinationFacilityId" from-field="facilityId"/>
+ <parameter param-name="lookupFlag" value="Y"/>
+ </link>
</menu-item>
<menu-item name="FindShipmentOut" title="${uiLabelMap.ProductOutgoingShipments}">
- <link target="FindShipment?originFacilityId=${facilityId}&lookupFlag=Y"/>
+ <link target="FindShipment">
+ <parameter param-name="originFacilityId" from-field="facilityId"/>
+ <parameter param-name="lookupFlag" value="Y"/>
+ </link>
</menu-item>
</menu>
<menu name="InventoryItemLabelsTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
Modified: ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml?rev=760990&r1=760989&r2=760990&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml Wed Apr 1 18:13:18 2009
@@ -185,7 +185,10 @@
<if-compare field="headerItem" operator="equals" value="main"/>
</and>
</condition>
- <link target="statusToComplete?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
+ <link target="statusToComplete">
+ <parameter param-name="timesheetId" from-field="timesheet.timesheetId"/>
+ <parameter param-name="statusId" value="TIMESHEET_COMPLETED"/>
+ </link>
</menu-item>
<menu-item name="setToCompleteKey" title="${uiLabelMap.MyPageToComplete}">
<condition>
@@ -194,7 +197,10 @@
<if-compare field="headerItem" operator="not-equals" value="main"/>
</and>
</condition>
- <link target="statusToCompleteKey?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
+ <link target="statusToCompleteKey">
+ <parameter param-name="timesheetId" from-field="timesheet.timesheetId"/>
+ <parameter param-name="statusId" value="TIMESHEET_COMPLETED"/>
+ </link>
</menu-item>
<menu-item name="myTime" title="${uiLabelMap.WorkEffortTimesheetMyTime}"><link target="/projectmgr/control/MyTimesheet" url-mode="inter-app"/></menu-item>
</menu>
@@ -289,7 +295,10 @@
<if-has-permission permission="PARTYMGR_CME-EMAIL_UPDATE"/>
</and>
</condition>
- <link target="updateCommunicationEvent/main?communicationEventId=${parameters.communicationEventId}&statusId=COM_IN_PROGRESS"/>
+ <link target="updateCommunicationEvent/main">
+ <parameter param-name="communicationEventId" from-field="parameters.communicationEventId"/>
+ <parameter param-name="statusId" value="COM_IN_PROGRESS"/>
+ </link>
</menu-item>
<menu-item name="delete" title="${uiLabelMap.CommonDelete}">
<condition>
@@ -325,7 +334,10 @@
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_COMPLETED"/>
</and>
</condition>
- <link target="setCustRequestStatus?custRequestId=${custRequestId}&statusId=CRQ_CANCELLED"/>
+ <link target="setCustRequestStatus">
+ <parameter param-name="custRequestId" from-field="custRequestId"/>
+ <parameter param-name="statusId" value="CRQ_CANCELLED"/>
+ </link>
</menu-item>
<menu-item name="addContent" title="${uiLabelMap.PageTitleAddContent}">
<condition>
Modified: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/MyPortalMenus.xml?rev=760990&r1=760989&r2=760990&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/widget/MyPortalMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/widget/MyPortalMenus.xml Wed Apr 1 18:13:18 2009
@@ -45,7 +45,10 @@
<if-compare field="headerItem" operator="equals" value="main"/>
</and>
</condition>
- <link target="statusToComplete?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
+ <link target="statusToComplete">
+ <parameter param-name="timesheetId" from-field="timesheet.timesheetId"/>
+ <parameter param-name="statusId" value="TIMESHEET_COMPLETED"/>
+ </link>
</menu-item>
<menu-item name="setToCompleteKey" title="${uiLabelMap.MyPortalToComplete}">
<condition>
@@ -54,7 +57,10 @@
<if-compare field="headerItem" operator="not-equals" value="main"/>
</and>
</condition>
- <link target="statusToCompleteKey?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
+ <link target="statusToCompleteKey">
+ <parameter param-name="timesheetId" from-field="timesheet.timesheetId"/>
+ <parameter param-name="statusId" value="TIMESHEET_COMPLETED"/>
+ </link>
</menu-item>
<menu-item name="myTime" title="${uiLabelMap.MyPortalMyTime}"><link target="/projectmgr/control/MyTimesheet" url-mode="inter-app"/></menu-item>
</menu>
@@ -75,7 +81,10 @@
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_COMPLETED"/>
</and>
</condition>
- <link target="setCustRequestStatus?custRequestId=${custRequestId}&statusId=CRQ_CANCELLED"/>
+ <link target="setCustRequestStatus">
+ <parameter param-name="custRequestId" from-field="custRequestId"/>
+ <parameter param-name="statusId" value="CRQ_CANCELLED"/>
+ </link>
</menu-item>
<menu-item name="addContent" title="${uiLabelMap.PageTitleAddContent}">
<condition>