Developing Portlets
http://www.cnblogs.com/Ivan-j2ee/archive/2012/07/26/2610173.html This document explains the way to setup a portlet.
Entities Involved
How To SetupHere I am taking an example from OOTB implementation to show how do we setup a portlet. Following is the first portlet with its all the associations and details: <PortletCategory portletCategoryId="PROFILE" description="Profiles"/> <PortalPortlet portalPortletId="party" portletName="Party Info" screenName="Party" screenLocation="component://party/widget/partymgr/ProfileScreens.xml" description="General information about a person or party group" screenshot="/images/portlets/party.png"/> <PortletPortletCategory portalPortletId="party" portletCategoryId="PROFILE"/> <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"/> Screen Setup(OFBiz Trunk) <screen name="PortalPageScreen"> <section> <actions> <entity-one entity-name="PortalPage" value-field="portalPage"/> <get-related value-field="portalPage" relation-name="PortalPageColumn" list="portalPageColumns"/> <entity-and entity-name="PortalPagePortletView" list="portalPagePortlets"> <field-map field-name="portalPageId" from-field="portalPage.portalPageId"/> </entity-and> </actions> <widgets> <platform-specific> <html><html-template location="component://common/webcommon/portal/showPortalPage.ftl"/></html> </platform-specific> </widgets> </section> </screen> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |