Hi
To add window to existing portal use this example
Here iam adding child window to the parent portlet
For this u hav to configure 3 xml files
Portlet.xml
Portletinstance.xml
Defaultobject.xml
| portlet.xml
| ....................................
| <portlet>
| <portlet id="child">
| <portlet-name>childPortlet</portlet-name>
| <portlet-class>
| com.counterpane.dashboard.portal.controller.jspportlet.JspPortlet
| </portlet-class>
| <init-param>
| <name>default-view</name>
| <value>/jsf/child.jsp</value>
| </init-param>
| <portlet-preferences>
| <preference>
| <name>contentPage</name>
| <value>/jsf/child.jsp</value>
| </preference>
| </portlet-preferences>
| <expiration-cache>0</expiration-cache>
| <supports>
| <mime-type>text/html</mime-type>
| </supports>
| <portlet-info>
| <title>child</title>
| </portlet-info>
| </portlet>
| portlet-instance.xml
| ........................................
| <deployment>
| <instance>
| <instance-id>childPortletInstance</instance-id>
| <portlet-ref>childPortlet</portlet-ref>
| </instance>
| </deployment>
| defaultobject.xml
| .......................................
| <page>
| <page-name>parent</page-name>
| <properties/>
| <window>
| <window-name>NavigationPortletWindow</window-name>
|
<instance-ref>NavigationPortletInstance</instance-ref>
| <region>navigation</region>
| <height>0</height>
| <properties>
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
| <window>
| <window-name>child</window-name>
| <instance-ref>childPortletInstance</instance-ref>
| <region>choose any reion in ur project</region>
| <height>0</height>
| </window>
| </page>
Note:in the tag choose any region in ur project
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100659#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...