Author: jleroux
Date: Tue Mar 31 22:23:40 2009 New Revision: 760684 URL: http://svn.apache.org/viewvc?rev=760684&view=rev Log: Securing URLs, link element in screens and menus : 8th set + tabs to 4 spaces Modified: ofbiz/trunk/applications/accounting/widget/FixedAssetScreens.xml ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml ofbiz/trunk/applications/accounting/widget/Menus.xml ofbiz/trunk/applications/accounting/widget/TaxAuthorityScreens.xml ofbiz/trunk/applications/content/widget/compdoc/CompDocScreens.xml ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml ofbiz/trunk/specialpurpose/assetmaint/widget/Menus.xml ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml Modified: ofbiz/trunk/applications/accounting/widget/FixedAssetScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/FixedAssetScreens.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/FixedAssetScreens.xml (original) +++ ofbiz/trunk/applications/accounting/widget/FixedAssetScreens.xml Tue Mar 31 22:23:40 2009 @@ -372,7 +372,11 @@ <widgets> <decorator-screen name="CommonFixedAssetDecorator" location="${parameters.fixedAssetDecoratorLocation}"> <decorator-section name="body"> - <container style="button-bar"><link target="EditFixedAssetMaint?fixedAssetId=${fixedAssetId}" text="${uiLabelMap.AccountingNewFixedAssetMaint}" style="buttontext"/></container> + <container style="button-bar"> + <link target="EditFixedAssetMaint" text="${uiLabelMap.AccountingNewFixedAssetMaint}" style="buttontext"> + <parameter param-name="fixedAssetId" from-field="fixedAssetId"/> + </link> + </container> <include-form name="ListFixedAssetMaints" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/> </decorator-section> </decorator-screen> @@ -407,7 +411,11 @@ </and> </condition> <widgets> - <container style="button-bar"><link target="EditFixedAssetMaint?fixedAssetId=${fixedAssetId}" text="${uiLabelMap.AccountingNewFixedAssetMaint}" style="buttontext"/></container> + <container style="button-bar"> + <link target="EditFixedAssetMaint" text="${uiLabelMap.AccountingNewFixedAssetMaint}" style="buttontext"> + <parameter param-name="fixedAssetId" from-field="fixedAssetId"/> + </link> + </container> </widgets> </section> <include-form name="EditFixedAssetMaint" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/> Modified: ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml (original) +++ ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml Tue Mar 31 22:23:40 2009 @@ -234,7 +234,11 @@ </condition> <widgets> <screenlet title="${uiLabelMap.AccountingInvoiceHeader}"> - <container><link target="editInvoice?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container> + <container> + <link target="editInvoice" text="${uiLabelMap.CommonUpdate}" style="buttontext"> + <parameter param-name="invoiceId" from-field="invoiceId"/> + </link> + </container> <include-form name="invoiceHeader" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/> </screenlet> <container style="lefthalf"> @@ -243,13 +247,21 @@ </screenlet> <screenlet title="${uiLabelMap.AccountingAppliedPayments} ${appliedAmount?currency(${invoice.currencyUomId})} ${uiLabelMap.AccountingOpenPayments} ${notAppliedAmount?currency(${invoice.currencyUomId})}" navigation-form-name="ListInvoiceApplications"> - <container><link target="editInvoiceApplications?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container> + <container> + <link target="editInvoiceApplications" text="${uiLabelMap.CommonUpdate}" style="buttontext"> + <parameter param-name="invoiceId" from-field="invoiceId"/> + </link> + </container> <include-form name="ListInvoiceApplications" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/> </screenlet> </container> <container style="righthalf"> <screenlet title="${uiLabelMap.AccountingInvoiceRoles}" navigation-form-name="invoiceRoles"> - <container><link target="invoiceRoles?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container> + <container> + <link target="invoiceRoles" text="${uiLabelMap.CommonUpdate}" style="buttontext"> + <parameter param-name="invoiceId" from-field="invoiceId"/> + </link> + </container> <include-form name="invoiceRoles" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/> </screenlet> <screenlet title="${uiLabelMap.PartyTerms}"> @@ -259,7 +271,11 @@ </container> <container style="leftclear"/> <screenlet title="${uiLabelMap.AccountingInvoiceItems}" navigation-form-name="invoiceItems"> - <container><link target="listInvoiceItems?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container> + <container> + <link target="listInvoiceItems" text="${uiLabelMap.CommonUpdate}" style="buttontext"> + <parameter param-name="invoiceId" from-field="invoiceId"/> + </link> + </container> <include-form name="invoiceItems" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/> </screenlet> <section> @@ -268,7 +284,11 @@ </condition> <widgets> <screenlet title="${uiLabelMap.AccountingInvoiceTimeEntries}" navigation-form-name="ListTimeEntries"> - <container><link target="editInvoiceTimeEntries?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container> + <container> + <link target="editInvoiceTimeEntries" text="${uiLabelMap.CommonUpdate}" style="buttontext"> + <parameter param-name="invoiceId" from-field="invoiceId"/> + </link> + </container> <include-form name="ListTimeEntries" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/> </screenlet> </widgets> Modified: ofbiz/trunk/applications/accounting/widget/Menus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/Menus.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/Menus.xml (original) +++ ofbiz/trunk/applications/accounting/widget/Menus.xml Tue Mar 31 22:23:40 2009 @@ -378,7 +378,11 @@ <link target="EditFixedAssetMaint?fixedAssetId=${fixedAssetMaint.fixedAssetId}&maintHistSeqId=${fixedAssetMaint.maintHistSeqId}"/> </menu-item> <menu-item name="EditFixedAssetMeters" title="${uiLabelMap.AccountingFixedAssetMeters}"> - <link target="EditFixedAssetMeters?fixedAssetId=${fixedAssetId}&maintHistSeqId=${maintHistSeqId}&productMeterTypeId=${fixedAssetMaint.intervalMeterTypeId}"/> + <link target="EditFixedAssetMeters"> + <parameter param-name="fixedAssetId" from-field="fixedAssetId"/> + <parameter param-name="maintHistSeqId" from-field="maintHistSeqId"/> + <parameter param-name="productMeterTypeId" from-field="fixedAssetMaint.intervalMeterTypeId"/> + </link> </menu-item> <menu-item name="EditFixedAssetMaintOrders" title="${uiLabelMap.AccountingFixedAssetMaintOrders}"> <link target="EditFixedAssetMaintOrders?fixedAssetId=${fixedAssetMaint.fixedAssetId}&maintHistSeqId=${fixedAssetMaint.maintHistSeqId}"/> Modified: ofbiz/trunk/applications/accounting/widget/TaxAuthorityScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/TaxAuthorityScreens.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/TaxAuthorityScreens.xml (original) +++ ofbiz/trunk/applications/accounting/widget/TaxAuthorityScreens.xml Tue Mar 31 22:23:40 2009 @@ -196,7 +196,12 @@ <container style="screenlet-body"> <section> <widgets> - <container><link target="EditTaxAuthorityPartyInfo?taxAuthPartyId=${taxAuthPartyId}&taxAuthGeoId=${taxAuthGeoId}" text="${uiLabelMap.AccountingNewTaxAuthorityPartyInfo}" style="buttontext"/></container> + <container> + <link target="EditTaxAuthorityPartyInfo" text="${uiLabelMap.AccountingNewTaxAuthorityPartyInfo}" style="buttontext"> + <parameter param-name="taxAuthPartyId" from-field="taxAuthPartyId"/> + <parameter param-name="taxAuthGeoId" from-field="taxAuthGeoId"/> + </link> + </container> <include-form name="FindTaxAuthorityParties" location="component://accounting/widget/TaxAuthorityForms.xml"/> </widgets> </section> @@ -246,7 +251,12 @@ <container style="screenlet-body"> <section> <widgets> - <container><link target="EditTaxAuthorityPartyInfo?taxAuthPartyId=${taxAuthPartyId}&taxAuthGeoId=${taxAuthGeoId}" text="${uiLabelMap.AccountingNewTaxAuthorityPartyInfo}" style="buttontext"/></container> + <container> + <link target="EditTaxAuthorityPartyInfo" text="${uiLabelMap.AccountingNewTaxAuthorityPartyInfo}" style="buttontext"> + <parameter param-name="taxAuthPartyId" from-field="taxAuthPartyId"/> + <parameter param-name="taxAuthGeoId" from-field="taxAuthGeoId"/> + </link> + </container> <include-form name="EditTaxAuthorityPartyInfo" location="component://accounting/widget/TaxAuthorityForms.xml"/> </widgets> </section> Modified: ofbiz/trunk/applications/content/widget/compdoc/CompDocScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/compdoc/CompDocScreens.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/applications/content/widget/compdoc/CompDocScreens.xml (original) +++ ofbiz/trunk/applications/content/widget/compdoc/CompDocScreens.xml Tue Mar 31 22:23:40 2009 @@ -50,7 +50,12 @@ <widgets> <decorator-screen name="commonCompDocDecorator" location="component://content/widget/CommonScreens.xml"> <decorator-section name="body"> - <container><link target="ListWaitingContentApproval?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}" text="${uiLabelMap.ContentCompDocViewWaitingApprovals}" style="buttontext"/></container> + <container> + <link target="ListWaitingContentApproval" text="${uiLabelMap.ContentCompDocViewWaitingApprovals}" style="buttontext"> + <parameter param-name="contentId" from-field="contentId"/> + <parameter param-name="contentRevisionSeqId" from-field="contentRevisionSeqId"/> + </link> + </container> <section> <condition><if-compare field="content.contentTypeId" operator="equals" value="COMPDOC_INSTANCE"/></condition> <widgets><include-screen name="rootInstanceApprovalStatus"/></widgets> @@ -473,7 +478,12 @@ <container style="screenlet-body"> <section> <widgets> - <container><link target="AddRootCompDocTemplate?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}" text="${uiLabelMap.PageTitleCreateNewRootCompDocTemplate}" style="buttontext"/></container> + <container> + <link target="AddRootCompDocTemplate" text="${uiLabelMap.PageTitleCreateNewRootCompDocTemplate}" style="buttontext"> + <parameter param-name="contentId" from-field="contentId"/> + <parameter param-name="contentRevisionSeqId" from-field="contentRevisionSeqId"/> + </link> + </container> <include-form name="ListCompDocInstances" location="component://content/widget/compdoc/CompDocForms.xml"/> </widgets> </section> @@ -757,7 +767,7 @@ <link target="ViewCompDocContentHtml" text="${uiLabelMap.PageTitleViewCompDocContentHtml}" style="buttontext"> <parameter param-name="contentId" from-field="contentId"/> <parameter param-name="contentRevisionSeqId" from-field="itemContentRevisionSeqId"/> - <parameter param-name="rootContentId" from-field="rootContentId"/> + <parameter param-name="rootContentId"/> </link> </container> </widgets> @@ -770,7 +780,12 @@ </actions> <widgets> <!-- link on form - <container><link target="EditSurvey?surveyId=${dataResource.relatedDetailId}&rootContentId=${rootContentId}" text="${uiLabelMap.PageTitleViewCompDocContent}" style="buttontext"/></container> + <container> + <link target="EditSurvey" text="${uiLabelMap.PageTitleViewCompDocContent}" style="buttontext"> + <parameter param-name="surveyId from-field="dataResource.relatedDetailId&rootContentId/> + <parameter param-name="rootContentId"/> + </link> + </container> --> </widgets> </section> @@ -782,7 +797,12 @@ </actions> <widgets> <!-- link on form - <container><link target="EditSurveyResponse?surveyResponseId=${dataResource.relatedDetailId}&rootContentId=${rootContentId}" text="${uiLabelMap.PageTitleViewCompDocContent}" style="buttontext"/></container> + <container> + <link target="EditSurveyResponse" text="${uiLabelMap.PageTitleViewCompDocContent}" style="buttontext"> + <parameter param-name="surveyResponseId from-field="dataResource.relatedDetailId"/> + <parameter param-name="rootContentId"/> + </link> + </container> --> </widgets> </section> @@ -1119,7 +1139,12 @@ <widgets> <decorator-screen name="commonCompDocDecorator" location="component://content/widget/CommonScreens.xml"> <decorator-section name="body"> - <container><link target="GenCompDocPdf?contentId=${rootContentId}&contentRevisionSeqId=${rootContentRevisionSeqId}" text="${uiLabelMap.ContentCompDocGeneratePDF}" style="buttontext"/></container> + <container> + <link target="GenCompDocPdf" text="${uiLabelMap.ContentCompDocGeneratePDF}" style="buttontext"> + <parameter param-name="contentId" from-field="rootContentId"/> + <parameter param-name="contentRevisionSeqId"/> + </link> + </container> <include-tree name="CompDocInstanceTree" location="component://content/widget/compdoc/CompDocTemplateTree.xml"/> </decorator-section> </decorator-screen> Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Tue Mar 31 22:23:40 2009 @@ -924,7 +924,11 @@ <container style="screenlet-body"> <section> <widgets> - <container><link target="EditPartyContents?partyId=${partyId}" text="${uiLabelMap.CommonCreateNew}" style="smallSubmit"/></container> + <container> + <link target="EditPartyContents" text="${uiLabelMap.CommonCreateNew}" style="smallSubmit"> + <parameter param-name="partyId" from-field="partyId"/> + </link> + </container> <include-form name="ListPartyContents" location="component://party/webapp/partymgr/party/PartyForms.xml"/> </widgets> </section> Modified: ofbiz/trunk/specialpurpose/assetmaint/widget/Menus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/Menus.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/Menus.xml (original) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/Menus.xml Tue Mar 31 22:23:40 2009 @@ -37,13 +37,25 @@ <menu name="FixedAssetMaintTabBar" extends="FixedAssetMaintTabBar" extends-resource="component://accounting/widget/Menus.xml"> <menu-item name="EditWorkEfforts" title="${uiLabelMap.WorkEffortAllTasks}"> - <link target="EditWorkEfforts?fixedAssetId=${fixedAssetMaint.fixedAssetId}&maintHistSeqId=${fixedAssetMaint.maintHistSeqId}&workEffortId=${fixedAssetMaint.scheduleWorkEffortId}"/> + <link target="EditWorkEfforts"> + <parameter param-name="fixedAssetId" from-field="fixedAssetMaint.fixedAssetId"/> + <parameter param-name="maintHistSeqId" from-field="fixedAssetMaint.maintHistSeqId"/> + <parameter param-name="workEffortId" from-field="fixedAssetMaint.scheduleWorkEffortId"/> + </link> </menu-item> <menu-item name="EditWorkEffortTimeEntries" title="${uiLabelMap.WorkEffortTimesheetTimeEntries}"> - <link target="EditWorkEffortTimeEntries?fixedAssetId=${fixedAssetMaint.fixedAssetId}&maintHistSeqId=${fixedAssetMaint.maintHistSeqId}&workEffortId=${fixedAssetMaint.scheduleWorkEffortId}"/> + <link target="EditWorkEffortTimeEntries"> + <parameter param-name="fixedAssetId" from-field="fixedAssetMaint.fixedAssetId"/> + <parameter param-name="maintHistSeqId" from-field="fixedAssetMaint.maintHistSeqId"/> + <parameter param-name="workEffortId" from-field="fixedAssetMaint.scheduleWorkEffortId"/> + </link> </menu-item> <menu-item name="EditWorkEffortNotes" title="${uiLabelMap.WorkEffortNotes}"> - <link target="EditWorkEffortNotes?fixedAssetId=${fixedAssetMaint.fixedAssetId}&maintHistSeqId=${fixedAssetMaint.maintHistSeqId}&workEffortId=${fixedAssetMaint.scheduleWorkEffortId}"/> + <link target="EditWorkEffortNotes"> + <parameter param-name="fixedAssetId" from-field="fixedAssetMaint.fixedAssetId"/> + <parameter param-name="maintHistSeqId" from-field="fixedAssetMaint.maintHistSeqId"/> + <parameter param-name="workEffortId" from-field="fixedAssetMaint.scheduleWorkEffortId"/> + </link> </menu-item> <menu-item name="EditItemIssuances" title="${uiLabelMap.AssetMaintItemIssuance}"> <link target="EditItemIssuances?fixedAssetId=${fixedAssetMaint.fixedAssetId}&maintHistSeqId=${fixedAssetMaint.maintHistSeqId}"/> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml Tue Mar 31 22:23:40 2009 @@ -1022,7 +1022,11 @@ </condition> <widgets> <screenlet title="${uiLabelMap.ProjectMgrContentList}"> - <container><link target="EditProjectContents?projectId=${projectId}" text="${uiLabelMap.CommonCreateNew}" style="smallSubmit"/></container> + <container> + <link target="EditProjectContents" text="${uiLabelMap.CommonCreateNew}" style="smallSubmit"> + <parameter param-name="projectId" from-field="projectId"/> + </link> + </container> <include-form name="ListContents" location="component://projectmgr/widget/forms/ProjectForms.xml"/> </screenlet> <screenlet title="${uiLabelMap.PageTitleAddProjectContent}"> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml?rev=760684&r1=760683&r2=760684&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml Tue Mar 31 22:23:40 2009 @@ -539,7 +539,11 @@ </condition> <widgets> <screenlet title="${uiLabelMap.ProjectMgrTaskContentList}"> - <container><link target="EditTaskContents?workEffortId=${workEffortId}" text="${uiLabelMap.CommonCreateNew}" style="smallSubmit"/></container> + <container> + <link target="EditTaskContents" text="${uiLabelMap.CommonCreateNew}" style="smallSubmit"> + <parameter param-name="workEffortId" from-field="workEffortId"/> + </link> + </container> <include-form name="ListContents" location="component://projectmgr/widget/forms/ProjectForms.xml"/> </screenlet> <screenlet title="${uiLabelMap.PageTitleAddTaskContent}"> |
Free forum by Nabble | Edit this page |