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

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

    darin howard Newbie

      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.