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/02 12:31:50 UTC

svn commit: r761240 - in /ofbiz/trunk: applications/accounting/widget/ applications/content/widget/forum/ applications/product/widget/catalog/ applications/product/widget/facility/ specialpurpose/projectmgr/widget/

Author: jleroux
Date: Thu Apr  2 10:31:49 2009
New Revision: 761240

URL: http://svn.apache.org/viewvc?rev=761240&view=rev
Log:
Securing URLs, link element in screens and menus : 25th set + tabs to 4 spaces

We are near the end...

Modified:
    ofbiz/trunk/applications/accounting/widget/GlScreens.xml
    ofbiz/trunk/applications/content/widget/forum/BlogScreens.xml
    ofbiz/trunk/applications/product/widget/catalog/ConfigScreens.xml
    ofbiz/trunk/applications/product/widget/facility/ShipmentScreens.xml
    ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml

Modified: ofbiz/trunk/applications/accounting/widget/GlScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/GlScreens.xml?rev=761240&r1=761239&r2=761240&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/GlScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/GlScreens.xml Thu Apr  2 10:31:49 2009
@@ -67,7 +67,9 @@
                                             </link>
                                         </container>
                                         <container>
-                                            <link text="${uiLabelMap.PageTitleUnpostedTransactions}" style="buttontext" target="ListUnpostedAcctgTrans?organizationPartyId=${organizationPartyId}"/>
+                                            <link text="${uiLabelMap.PageTitleUnpostedTransactions}" style="buttontext" target="ListUnpostedAcctgTrans">
+                                                <parameter param-name="organizationPartyId" from-field="organizationPartyId"/>
+                                            </link>
                                             <link target="BalanceSheet" text="${uiLabelMap.AccountingBalanceSheet}" style="buttontext">
                                                 <parameter param-name="organizationPartyId" from-field="organizationPartyId"/>
                                             </link>
@@ -101,9 +103,15 @@
                             </container>
                             <container style="screenlet-body">
                                  <container>
-                                    <link text="${uiLabelMap.AccountingCreateAnAccountingTransaction}" style="buttontext" target="newAcctgTrans?organizationPartyId=${organizationPartyId}"/>
-                                    <link text="${uiLabelMap.AccountingCreateAcctgTransAndEntries}" style="buttontext" target="CreateAcctgTransAndEntries?organizationPartyId=${organizationPartyId}"/>
-                                    <link text="${uiLabelMap.PageTitleUnpostedTransactions}" style="buttontext" target="ListUnpostedAcctgTrans?organizationPartyId=${organizationPartyId}"/>
+                                    <link text="${uiLabelMap.AccountingCreateAnAccountingTransaction}" style="buttontext" target="newAcctgTrans">
+                                        <parameter param-name="organizationPartyId" from-field="organizationPartyId"/>
+                                    </link>
+                                    <link text="${uiLabelMap.AccountingCreateAcctgTransAndEntries}" style="buttontext" target="CreateAcctgTransAndEntries">
+                                        <parameter param-name="organizationPartyId" from-field="organizationPartyId"/>
+                                    </link>
+                                    <link text="${uiLabelMap.PageTitleUnpostedTransactions}" style="buttontext" target="ListUnpostedAcctgTrans">
+                                        <parameter param-name="organizationPartyId" from-field="organizationPartyId"/>
+                                    </link>
                                 </container>
                                 <include-form name="FindAcctgTrans" location="component://accounting/widget/GlForms.xml"/>
                             </container>

Modified: ofbiz/trunk/applications/content/widget/forum/BlogScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/forum/BlogScreens.xml?rev=761240&r1=761239&r2=761240&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/widget/forum/BlogScreens.xml (original)
+++ ofbiz/trunk/applications/content/widget/forum/BlogScreens.xml Thu Apr  2 10:31:49 2009
@@ -65,7 +65,9 @@
                                 <include-menu name="blog" location="component://content/widget/content/ContentMenus.xml"/>
                                 <include-menu name="blogSub" location="component://content/widget/content/ContentMenus.xml"/>
                                 <label style="h1" text="${blogContent.contentName}"/>
-                                <link style="h1" text=" [${blogContent.contentId}]" target="blogContent?blogContentId=${parameters.blogContentId}"/>
+                                <link style="h1" text=" [${blogContent.contentId}]" target="blogContent">
+                                    <parameter param-name="blogContentId" from-field="parameters.blogContentId"/>
+                                </link>
                             </widgets>
                         </section>
                         <decorator-section-include name="body"/>
@@ -92,7 +94,9 @@
                                 <include-menu name="blogArt" location="component://content/widget/content/ContentMenus.xml"/>
                                 <include-menu name="blogArtSub" location="component://content/widget/content/ContentMenus.xml"/>
                                 <label style="h1" text="${blogContent.contentName}"/>
-                                <link style="h1" text=" [${blogContent.contentId}]" target="blogContent?blogContentId=${parameters.blogContentId}"/>
+                                <link style="h1" text=" [${blogContent.contentId}]" target="blogContent">
+                                    <parameter param-name="blogContentId" from-field="parameters.blogContentId"/>
+                                </link>
                             </widgets>
                         </section>
                         <decorator-section-include name="body"/>

Modified: ofbiz/trunk/applications/product/widget/catalog/ConfigScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/ConfigScreens.xml?rev=761240&r1=761239&r2=761240&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/ConfigScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/ConfigScreens.xml Thu Apr  2 10:31:49 2009
@@ -163,7 +163,9 @@
                     <condition><not><if-empty field="configOptionId"/></not></condition>
                     <widgets>
                         <screenlet title="${uiLabelMap.PageTitleEditConfigOptions}">
-                            <link style="buttontext" text="${uiLabelMap.ProductCreateNewConfigOptions}" target="EditProductConfigOptions?configItemId=${configItemId}"/>
+                            <link style="buttontext" text="${uiLabelMap.ProductCreateNewConfigOptions}" target="EditProductConfigOptions">
+                                <parameter param-name="configItemId" from-field="configItemId"/>
+                            </link>
                             <include-form name="CreateConfigOption" location="component://product/webapp/catalog/config/ConfigForms.xml"/>
                         </screenlet>
                     </widgets>

Modified: ofbiz/trunk/applications/product/widget/facility/ShipmentScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/ShipmentScreens.xml?rev=761240&r1=761239&r2=761240&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/ShipmentScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/facility/ShipmentScreens.xml Thu Apr  2 10:31:49 2009
@@ -91,7 +91,9 @@
                         <decorator-screen name="CommonShipmentDecorator">
                             <decorator-section name="body">
                                 <container>
-                                    <link style="buttontext" text="${uiLabelMap.ProductGenerateShipmentManifestReport}" target="ShipmentManifest.pdf?shipmentId=${shipment.shipmentId}"/>
+                                    <link style="buttontext" text="${uiLabelMap.ProductGenerateShipmentManifestReport}" target="ShipmentManifest.pdf">
+                                        <parameter param-name="shipmentId" from-field="shipment.shipmentId"/>
+                                    </link>
                                 </container>
                                 <platform-specific>
                                     <html><html-template location="component://product/webapp/facility/shipment/ViewShipmentInfo.ftl"/></html>

Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml?rev=761240&r1=761239&r2=761240&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml Thu Apr  2 10:31:49 2009
@@ -114,7 +114,9 @@
                                         <include-menu name="TaskSubTabBar" location="component://projectmgr/widget/Menus.xml"/>
                                         <container style="clear"/>
                                         <label style="h1" text="${uiLabelMap.ProjectMgrTaskCurrent}: ${workEffort.workEffortName}[${workEffort.workEffortId}] ${uiLabelMap.ProjectMgrPhaseName}: ${phaseName} ${uiLabelMap.ProjectMgrProjectName}: ${projectName}"/>
-                                        <link style="h1" text="[${projectId}]" target="projectView?projectId=${projectId}"/>
+                                        <link style="h1" text="[${projectId}]" target="projectView">
+                                            <parameter param-name="projectId" from-field="projectId"/>
+                                        </link>
                                     </widgets>                                    
                                 </section>
                                 <decorator-section-include name="body"/>