[Beginners Corner] - Re: Adding CMS html Content to Portlet Window
by crazynewt2
Sorry I forgot to mark code above... see below
| <deployments>
| ...
| ...
| ...
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>HelloPortal</parent-ref>
| <page>
| <page-name>CMS Page</page-name>
| <property>
| <name>order</name>
| <value>5</value>
| </property>
| <window>
| <window-name>MyCMSWindow</window-name>
| <content>
| <content-type>cms</content-type>
| <content-uri>/WEB-INF/pages/home.html</content-uri>
| </content>
| <region>center</region>
| <height>1</height>
| </window>
| <window>
| <window-name>OtherWindow</window-name>
| <instance-ref>AnarPortletInstance</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
| <security-constraint>
| <policy-permission>
| <unchecked/>
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
| </deployment>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097995#4097995
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097995
18Â years, 8Â months
[Beginners Corner] - Adding CMS html Content to Portlet Window
by crazynewt2
Hi Guys,
I have been having a hard time with this, quite frankly, silly problem.
I have created a portal with multiple pages, as defined in my helloworld-object.xml markup. Some pages have a window that has a portlet. On the MyCMS page I have created a window and instead of a portlet I would like to have a html page that already exists.
This is simple to do manually through the admin console by clicking on several buttons. But I want to do this programmatically for various reasons.
Anyway, the problem is when I specify the html page, it shows up in my browser window with a 404 Page Not Found. (After creating a war file, and moving it to deploy folder)
I think it has to do with where I am specifying the location of the html page?
Code of helloworld-object.xml:
...
... <! other pages and widows etc that work fine !>
...
<if-exists>overwrite</if-exists>
<parent-ref>HelloPortal</parent-ref>
<page-name>CMS Page</page-name>
order
5
<window-name>MyCMSWindow</window-name>
<content-type>cms</content-type>
<content-uri>/WEB-INF/pages/home.html</content-uri>
center
1
<window-name>OtherWindow</window-name>
<instance-ref>AnarPortletInstance</instance-ref>
center
1
<security-constraint>
<policy-permission>
<action-name>viewrecursive</action-name>
</policy-permission>
</security-constraint>
Thanks in advance!
Anar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097994#4097994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097994
18Â years, 8Â months