Author: apatel
Date: Thu Jun 4 02:48:22 2009 New Revision: 781642 URL: http://svn.apache.org/viewvc?rev=781642&view=rev Log: Updated PartyProfile page to use PortalPage renderer. Modified: ofbiz/trunk/applications/party/data/PartyPortletData.xml ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Modified: ofbiz/trunk/applications/party/data/PartyPortletData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/data/PartyPortletData.xml?rev=781642&r1=781641&r2=781642&view=diff ============================================================================== --- ofbiz/trunk/applications/party/data/PartyPortletData.xml (original) +++ ofbiz/trunk/applications/party/data/PartyPortletData.xml Thu Jun 4 02:48:22 2009 @@ -101,4 +101,21 @@ editFormName="EditCommPortletParams" editFormLocation="component://party/webapp/partymgr/communication/CommForms.xml"/> <PortletPortletCategory portalPortletId="MyCommunications" portletCategoryId="COMMUNICATIONS"/> + <PortalPage portalPageId="PartyProfile" sequenceNum="0" portalPageName="Party Profile Portal Page" description="Party profile page using flexible Portal technology" ownerUserLoginId="_NA_"/> + <PortalPageColumn portalPageId="PartyProfile" columnSeqId="00001" columnWidthPercentage="50"/> + <PortalPageColumn portalPageId="PartyProfile" columnSeqId="00002"/><!-- no width in pixels or percent, use the rest of the space available --> + + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="party" portletSeqId="00001" columnSeqId="00001" sequenceNum="0"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="contact" portletSeqId="00001" columnSeqId="00001" sequenceNum="1"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="LoyaltyPoints" portletSeqId="00001" columnSeqId="00001" sequenceNum="2"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="PaymentMethods" portletSeqId="00001" columnSeqId="00001" sequenceNum="3"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="AvsSettings" portletSeqId="00001" columnSeqId="00001" sequenceNum="4"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="Attributes" portletSeqId="00001" columnSeqId="00002" sequenceNum="7"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="UserLogin" portletSeqId="00001" columnSeqId="00002" sequenceNum="8"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="Visits" portletSeqId="00001" columnSeqId="00002" sequenceNum="9"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="Content" portletSeqId="00001" columnSeqId="00002" sequenceNum="10"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="Notes" portletSeqId="00001" columnSeqId="00002" sequenceNum="11"/> + <PortalPagePortlet portalPageId="PartyProfile" portalPortletId="Visits" portletSeqId="00001" columnSeqId="00002" sequenceNum="12"/> + + </entity-engine-xml> Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml?rev=781642&r1=781641&r2=781642&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Thu Jun 4 02:48:22 2009 @@ -56,9 +56,73 @@ <!-- Party Profile Screens --> + <screen name="showPortalPage"> + <section> + <actions> + <entity-one value-field="portalPage" entity-name="PortalPage"> + <field-map field-name="portalPageId" value="PartyProfile"/> + </entity-one> + <entity-and entity-name="PortalPageColumn" list="portalPageColumns"> + <field-map field-name="portalPageId" value="PartyProfile"/> + <order-by field-name="columnSeqId"/> + </entity-and> + <entity-and entity-name="PortalPagePortletView" list="portalPagePortlets"> + <field-map field-name="portalPageId" value="PartyProfile"/> + <order-by field-name="columnSeqId"/> + <order-by field-name="sequenceNum"/> + </entity-and> + <set field="titleProperty" value="PageTitleViewPartyProfile"/> + <set field="tabButtonItem" value="viewprofile"/> + <set field="headerItem" value="find"/> + <set field="labelTitleProperty" value="PartyTaxAuthInfos"/> + <set field="partyId" from-field="parameters.partyId"/> + <set field="layoutSettings.javaScripts[]" value="/images/prototypejs/prototype.js" global="true"/> + <set field="layoutSettings.javaScripts[]" value="/images/prototypejs/control.progress_bar.js" global="true"/> + <set field="layoutSettings.styleSheets[]" value="/images/prototypejs/progress_bar.css" global="true"/> + <set field="layoutSettings.javaScripts[]" value="/partymgr/js/PartyProfileContent.js" global="true"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/ViewProfile.groovy"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <section> + <actions> + <entity-one entity-name="PortalPage" value-field="portalPage"/> + <entity-and entity-name="PortalPageColumn" list="portalPageColumns"> + <field-map field-name="portalPageId" from-field="parameters.portalPageId"/> + <order-by field-name="columnSeqId"/> + </entity-and> + <entity-and entity-name="PortalPagePortletView" list="portalPagePortlets"> + <field-map field-name="portalPageId" from-field="portalPage.portalPageId"/> + <order-by field-name="columnSeqId"/> + <order-by field-name="sequenceNum"/> + </entity-and> + </actions> + <widgets> + <platform-specific><html><html-template location="component://common/webcommon/portal/showPortalPage.ftl"/></html></platform-specific> + </widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="viewprofile"> <section> <actions> + <entity-one value-field="portalPage" entity-name="PortalPage"> + <field-map field-name="portalPageId" value="PartyProfile"/> + </entity-one> + <entity-and entity-name="PortalPageColumn" list="portalPageColumns"> + <field-map field-name="portalPageId" value="PartyProfile"/> + <order-by field-name="columnSeqId"/> + </entity-and> + <entity-and entity-name="PortalPagePortletView" list="portalPagePortlets"> + <field-map field-name="portalPageId" value="PartyProfile"/> + <order-by field-name="columnSeqId"/> + <order-by field-name="sequenceNum"/> + </entity-and> <set field="titleProperty" value="PageTitleViewPartyProfile"/> <set field="tabButtonItem" value="viewprofile"/> <set field="headerItem" value="find"/> @@ -100,27 +164,7 @@ </section> <section> <widgets> - <container style="profile-left"> - <include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="Contact" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="contactsAndAccounts" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="LoyaltyPoints" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="PaymentMethods" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="AvsSettings" location="component://party/widget/partymgr/ProfileScreens.xml"/> - </container> - <container style="profile-right"> - <include-screen name="FinAccounts" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="UserLogin" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="Attributes" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="Visits" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="Cart" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="SerializedInventory" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="Subscriptions" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="Content" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="ShipperAccount" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="Notes" location="component://party/widget/partymgr/ProfileScreens.xml"/> - <include-screen name="mytasks" location="component://party/widget/partymgr/ProfileScreens.xml"/> - </container> + <platform-specific><html><html-template location="component://common/webcommon/portal/showPortalPage.ftl"/></html></platform-specific> </widgets> </section> </widgets> |
Free forum by Nabble | Edit this page |