0 Replies Latest reply on May 31, 2006 4:23 AM by Vecchio Fabrizio

    Deployment descriptor

    Vecchio Fabrizio Newbie

      hi,
      in the jboss-portal deployment descriptor "*-object.xml" we can define portal, page ecc.
      if we have a page like :

       <deployment>
       <if-exists>overwrite</if-exists>
       <parent-ref>default</parent-ref>
       <page>
       <page-name>MainPage</page-name>
       <window>
       <window-name>ToolbarPortletWindow</window-name>
       <instance-ref>ToolbarPortletInstance</instance-ref>
       <region>menubar</region>
       <height>0</height>
       </window>
       <window>
       <window-name>NavigationPortletWindow</window-name>
       <instance-ref>NavigationPortletInstance</instance-ref>
       <region>navigator</region>
       <height>0</height>
       </window>
       </page>
       </deployment>
      


      it is possible to "extend" the already defined page "MainPage" in a way like :

       <deployment>
       <if-exists>overwrite</if-exists>
       <parent-ref>default</parent-ref>
       <page>
       <page-name>SecondPage</page-name>
       <extend>MainPage</extend>
       <window>
       <window-name>New content</window-name>
       <instance-ref>NewContentPortletInstance</instance-ref>
       <region>center</region>
       <height>0</height>
       </window>
       </page>
       </deployment>
      


      This can be usefull to decrease deployment descriptor and avoid typing errors when a lot of pages contains same portlet.
      Thanks