[jboss-user] [JBoss Portal] - Re: Help: Instance of a existent portlet in my new container

engela do-not-reply at jboss.com
Tue Jun 5 12:47:47 EDT 2007


You need to add a "NavigationWindow" which references an instance of the NavigationPortlet and is placed into the region "navigation" to your page description:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <deployments>
  |    <deployment>
  |       <if-exists>overwrite</if-exists>
  |       <parent-ref>default</parent-ref>
  |       <page>
  |           <page-name>HelloWorldPContainerPage</page-name>
  |           <window>
  |             <window-name>NavigationPortletWindow</window-name>
  |             <instance-ref>NavigationPortletInstance</instance-ref>
  |             <region>navigation</region>
  |             <height>0</height>
  |             <!-- keep portal and page properties for this window -->
  |             <properties>
  |                <!-- use the window renderer from the emptyRenderer renderSet -->
  |                <property>
  |                   <name>theme.windowRendererId</name>
  |                   <value>emptyRenderer</value>
  |                </property>
  |                <!-- use the decoration renderer from the emptyRenderer renderSet -->
  |                <property>
  |                   <name>theme.decorationRendererId</name>
  |                   <value>emptyRenderer</value>
  |                </property>
  |                <!-- use the portlet renderer from the emptyRenderer renderSet -->
  |                <property>
  |                   <name>theme.portletRendererId</name>
  |                   <value>emptyRenderer</value>
  |                </property>
  |             </properties>
  |          </window>
  |          <window>
  |               <window-name>HelloWorldPortletWindow</window-name>
  |               <instance-ref>HelloWorldPortletInstance</instance-ref>
  |               <region>center</region>
  |               <height>1</height>
  |           </window>
  |       </page>
  |    </deployment>
  | </deployments>	
  | 

For an example have a look at:

jboss-portal.sar\portal-samples.war\WEB-INF\default-object.xml

Anette


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

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



More information about the jboss-user mailing list