mypage component: make the delete commevent link return to the proper screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674735 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2008-07-08 08:23:16 +00:00
parent 3fd79154a9
commit 16d64dee40
3 changed files with 26 additions and 2 deletions
@@ -129,6 +129,18 @@
<response name="success" type="view" value="main"/>
<response name="error" type="view" value="main"/>
</request-map>
<request-map uri="deletePartyCommunicationEventMy">
<security https="true" auth="true"/>
<event type="service" invoke="deleteCommunicationEvent"/>
<response name="success" type="view" value="myCommunications"/>
<response name="error" type="view" value="myCommunications"/>
</request-map>
<request-map uri="deletePartyCommunicationEventOthers">
<security https="true" auth="true"/>
<event type="service" invoke="deleteCommunicationEvent"/>
<response name="success" type="view" value="otherCommunications"/>
<response name="error" type="view" value="otherCommunications"/>
</request-map>
<!-- PREFERENCES -->
<request-map uri="preferences">
@@ -89,4 +89,16 @@ under the License.
<field name="myTimesheet"><check/></field>
<field name="updateButton"><submit/></field>
</form>
<form name="ListPartyCommEvents" extends="ListPartyCommEvents" extends-resource="component://party/webapp/partymgr/communication/CommForms.xml" >
<field use-when="headerItem.equals(&quot;main&quot;)" name="removeLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="smallSubmit">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deletePartyCommunicationEvent?partyId=${partyId}&amp;communicationEventId=${communicationEventId}"/>
</field>
<field use-when="headerItem.equals(&quot;myCommunications&quot;)" name="removeLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="smallSubmit">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deletePartyCommunicationEventMy?partyId=${partyId}&amp;communicationEventId=${communicationEventId}"/>
</field>
<field use-when="headerItem.equals(&quot;otherCommunications&quot;)" name="removeLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="smallSubmit">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deletePartyCommunicationEventOthers?partyId=${partyId}&amp;communicationEventId=${communicationEventId}"/>
</field>
</form>
</forms>
@@ -196,7 +196,7 @@ under the License.
<include-menu name="MyCommunicationsMenu"
location="component://mypage/widget/MyPageMenus.xml" />
<include-form name="ListPartyCommEvents"
location="component://party/webapp/partymgr/communication/CommForms.xml" />
location="component://mypage/widget/MyPageForms.xml" />
</screenlet>
</widgets>
</section>
@@ -225,7 +225,7 @@ under the License.
<include-menu name="MyCommunicationsMenu"
location="component://mypage/widget/MyPageMenus.xml" />
<include-form name="ListPartyCommEvents"
location="component://party/webapp/partymgr/communication/CommForms.xml" />
location="component://mypage/widget/MyPageForms.xml" />
</screenlet>
</widgets>
</section>