[jboss-user] [JBoss Portal] - Re: Help ! IFrame Portlet !
PeterJ
do-not-reply at jboss.com
Tue May 13 15:51:12 EDT 2008
You extracted the entire zip file into the deploy directory? You should not have done that - undo!
Here are the steps, starting with the downloaded iframe zip file:
1) Unzip the iframe zip file into a temporary directory.
2) Unpack the iframeportlet.war file into a directory named iframeportlet.war in a temporary location.
3) Edit the iframeportlet.war/WEB-INF/portlet-instances.xml and iframeportlet.war/WEB-INF/iframe-object.xmlf files as I indicated in my earlier post.
4) Copy the entire iframeportlet.war directory to server/default/deploy
5) In your browser, go to the IFrame page.
Here is an example portlet-instances.xml file:
<?xml version="1.0" standalone="yes"?>
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <instance>
| <instance-id>IFrame1</instance-id>
| <portlet-ref>IFramePortlet</portlet-ref>
| </instance>
| </deployment>
| <deployment>
| <if-exists>overwrite</if-exists>
| <instance>
| <instance-id>IFrame2</instance-id>
| <portlet-ref>IFramePortlet</portlet-ref>
| </instance>
| </deployment>
| <deployment>
| <if-exists>overwrite</if-exists>
| <instance>
| <instance-id>IFrame3</instance-id>
| <portlet-ref>IFramePortlet</portlet-ref>
| </instance>
| </deployment>
| </deployments>
and an example iframe-object.xml file:
<?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>default</parent-ref>
| <page>
| <page-name>IFrame</page-name>
| <window>
| <window-name>IFramePortletWindow1</window-name>
| <instance-ref>IFrame1</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
| <window>
| <window-name>IFramePortletWindow2</window-name>
| <instance-ref>IFrame2</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
| <window>
| <window-name>IFramePortletWindow3</window-name>
| <instance-ref>IFrame3</instance-ref>
| <region>center</region>
| <height>2</height>
| </window>
| </page>
| </deployment>
| </deployments>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150511#4150511
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150511
More information about the jboss-user
mailing list