[jboss-user] [Beginners Corner] - Adding CMS html Content to Portlet Window

crazynewt2 do-not-reply at jboss.com
Tue Oct 23 13:19:00 EDT 2007


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



More information about the jboss-user mailing list