0 Replies Latest reply on Oct 1, 2007 5:10 PM by dhoward0000

    Difference between portlet-ref and component-ref - portlet i

    dhoward0000

      I'm trying to figure out why with the below configuration, only the TestPortletInstance30 instance will get created. Neither instance in the portlet-instances.xml is generated. Any ideas?


      jboss-app.xml:

      <jboss-app>
       <app-name>appname</app-name>
      </jboss-app>


      portlet-instances.xml:

      <deployment>
       <instance>
       <instance-id>TestPortletInstance10</instance-id>
       <portlet-ref>appname.TestPortlet</portlet-ref>
       </instance>
       </deployment>
      
      <deployment>
       <instance>
       <instance-id>TestPortletInstance20</instance-id>
       <portlet-ref>TestPortlet</portlet-ref>
       </instance>
       </deployment>


      myapp-object.xml:

      <deployment>
       <parent-ref/>
       <if-exists>overwrite</if-exists>
       <instance>
       <instance-name>TestPortletInstance30</instance-name>
       <component-ref>appname.TestPortlet</component-ref>
       </instance>
       </deployment>



      Thanks.