[jboss-user] [JBoss Portal] - Re: Configuring JBoss Portlets by default

PeterJ do-not-reply at jboss.com
Tue Aug 21 16:26:24 EDT 2007


On second thought, if you have a portlet named SomePortlet, then here are the full ad complete contents for portlet-instances.xml and *-object.xml to get the portlet to show up on the default page:

portlet-instances.xml:
<deployments>
  |   <deployment>
  |     <instance>
  |       <instance-id>SomePortletInstance</instance-id>
  |       <portlet-ref>SomePortlet</portlet-ref>
  |     </instance>
  |   </deployment>
  | </deployments>

some-object.xml:
<deployments>
  |   <deployment>
  |     <if-exists>overwrite</if-exists>
  |     <parent-ref>default.default</parent-ref>
  |     <window>
  |       <window-name>SomePortletWindow</window-name>
  |       <instance-ref>SomePortletInstance</instance-ref>
  |       <region>center</region>
  |       <height>1</height>
  |     </window>
  |   </deployment>
  | </deployments>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076478#4076478

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076478



More information about the jboss-user mailing list