1 Reply Latest reply on Feb 2, 2006 12:08 PM by roy.russo

    doubt regarding CMS portlet in portal-core.sar

    davinchi

      Hi All,

      Is the instance of CMS portlet in portal-core.sar having the "overwrite" option or "keep" option in deployment

      For e.g. in my application's *-object.xml I have the following lines


       <deployment>
       <if-exists>overwrite</if-exists>
       <instance>
       <instance-name>CMSPortletInstance</instance-name>
       <component-ref>helloworld.MyCMSPortlet</component-ref>
       </instance>
       </deployment>
      
      </deployments>
      


      and in the portlet.xml I have the following lines

       <portlet>
       <portlet-name>MyCMSPortlet</portlet-name>
       <portlet-class>org.jboss.portal.core.portlet.cms.CMSPortlet</portlet-class>
       <init-param>
       <description>Default path to index page.</description>
       <name>indexpage</name>
       <value>/helloworldcontent/aa.html</value>
       </init-param>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
       <portlet-info>
       <title>CMS</title>
       </portlet-info>
      </portlet>
      


      The above snippet works fine and aa.html is visible at the location that I want

      But

      When I access the application default using the url http://localhost:8080/portal/portal/default/

      The CMSportlet shows aa.html when it should actually be index.html

      I looked up the default-object.xml but there seems to be no CMSmapping

      Thanks in advance
      dvinci