Author: apatel
Date: Mon Jun 29 07:23:22 2009 New Revision: 789244 URL: http://svn.apache.org/viewvc?rev=789244&view=rev Log: New Order main page using Portlets. Modified: ofbiz/trunk/applications/order/data/OrderPortletData.xml ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml Modified: ofbiz/trunk/applications/order/data/OrderPortletData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/data/OrderPortletData.xml?rev=789244&r1=789243&r2=789244&view=diff ============================================================================== --- ofbiz/trunk/applications/order/data/OrderPortletData.xml (original) +++ ofbiz/trunk/applications/order/data/OrderPortletData.xml Mon Jun 29 07:23:22 2009 @@ -63,5 +63,12 @@ screenLocation="component://order/widget/ordermgr/OrderViewScreens.xml" description="List Sales Orders placed today" securityServiceName="portalPermissionIsEmployee" securityMainAction="VIEW"/> <PortletPortletCategory portalPortletId="ListSalesOrders" portletCategoryId="ORDERMGR"/> + + <PortalPage portalPageId="OrderPortalPage" sequenceNum="0" portalPageName="Order Portal Page" description="Order main page using flexible Portal technology" ownerUserLoginId="_NA_"/> + <PortalPageColumn portalPageId="OrderPortalPage" columnSeqId="00001"/> + <PortalPageColumn portalPageId="OrderPortalPage" columnSeqId="00002"/> + + <PortalPagePortlet portalPageId="OrderPortalPage" portalPortletId="ListSalesOrders" portletSeqId="00001" columnSeqId="00001" sequenceNum="0"/> + <PortalPagePortlet portalPageId="OrderPortalPage" portalPortletId="BestSellingProducts" portletSeqId="00001" columnSeqId="00001" sequenceNum="1"/> </entity-engine-xml> Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml?rev=789244&r1=789243&r2=789244&view=diff ============================================================================== --- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml (original) +++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml Mon Jun 29 07:23:22 2009 @@ -1621,7 +1621,7 @@ <!-- View Mappings --> <view-map name="LookupProductCategory" type="screen" page="component://product/widget/catalog/LookupScreens.xml#LookupProductCategory"/> - <view-map name="main" type="screen" page="component://order/widget/ordermgr/OrderViewScreens.xml#OrderHeaderListView"/> + <view-map name="main" type="screen" page="component://order/widget/ordermgr/OrderViewScreens.xml#Main"/> <view-map name="orderstats" type="screen" page="component://order/widget/ordermgr/OrderViewScreens.xml#OrderStats"/> <view-map name="findorders" type="screen" page="component://order/widget/ordermgr/OrderViewScreens.xml#OrderFindOrder"/> Modified: ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml?rev=789244&r1=789243&r2=789244&view=diff ============================================================================== --- ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml (original) +++ ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml Mon Jun 29 07:23:22 2009 @@ -33,6 +33,37 @@ </widgets> </section> </screen> + <screen name="Main"> + <section> + <actions> + <set field="headerItem" value="main"/> + <set field="parameters.portalPageId" value="OrderPortalPage"/> + </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="OrderHeaderView"> <section> <actions> |
Free forum by Nabble | Edit this page |