2 Replies Latest reply on Sep 27, 2006 12:16 PM by tkornechuk

    Problem adding navigation portlet to page

    thatporguy

      Alright guys, I have a portlet i deploy that creates its own page. I then try to add the navigation portlet to it, and in the admin tab i can add it without errors. When i go to that page though, the nav portlet is not there.

      how could i add the navigation portlet to the deployment of that page? can i do that?

      thanks

        • 1. Re: Problem adding navigation portlet to page
          tkornechuk

          I just ran into this same issue.

          In my *-obect.xml I have the following:



          <if-exists>overwrite</if-exists>
          <parent-ref>default</parent-ref>

          <page-name>Content<page-name>

          <window-name>MyPortletWindow</window-name>
          <instance-ref>MyNewPortletInstance</instance-ref>
          center
          0


          <window-name>MyNav</window-name>
          <instance-ref>NavigationPortletInstance</instance-ref>
          navigation
          0
          0

          <security-constraint>
          <policy-permission>
          <role-name>User</role-name>
          <action-name>viewrecursive</action-name>
          </policy-permission>
          <policy-permission>
          <role-name>Admin</role-name>
          <action-name>viewrecursive</action-name>
          <action-name>personalizerecursive</action-name>
          </policy-permission>
          </security-constraint>



          <if-exists>overwrite</if-exists>

          <instance-name>MyNewPortletInstance</instance-name>
          <component-ref>myportlet.MyPortlet</component-ref>




          and in my portlet-instances.xml, I have the following:

          <?xml version="1.0" standalone="yes"?>


          <if-exists>overwrite</if-exists>

          <instance-id>MyNewPortletInstance</instance-id>
          <portlet-ref>MyPortlet</portlet-ref>


          <instance-id>NavigationPortletInstance</instance-id>
          <portlet-ref>NavigationPortlet</portlet-ref>




          This works great. I'm now struggling with trying to set the theme.windowRendererId, theme.decorationRendererId, and theme.portletRendererId in the descriptor. If you come up with a solution for that, I'd appreciate you sharing it with me.

          Regards,

          Thom

          • 2. Re: Problem adding navigation portlet to page
            tkornechuk

            I'm repositing this with html disable because the code was lost in the original post.

            I just ran into this same issue.

            In my *-obect.xml I have the following:



            <if-exists>overwrite</if-exists>
            <parent-ref>default</parent-ref>

            <page-name>Content<page-name>

            <window-name>MyPortletWindow</window-name>
            <instance-ref>MyNewPortletInstance</instance-ref>
            center
            0


            <window-name>MyNav</window-name>
            <instance-ref>NavigationPortletInstance</instance-ref>
            navigation
            0
            0

            <security-constraint>
            <policy-permission>
            <role-name>User</role-name>
            <action-name>viewrecursive</action-name>
            </policy-permission>
            <policy-permission>
            <role-name>Admin</role-name>
            <action-name>viewrecursive</action-name>
            <action-name>personalizerecursive</action-name>
            </policy-permission>
            </security-constraint>



            <if-exists>overwrite</if-exists>

            <instance-name>MyNewPortletInstance</instance-name>
            <component-ref>myportlet.MyPortlet</component-ref>




            and in my portlet-instances.xml, I have the following:

            <?xml version="1.0" standalone="yes"?>


            <if-exists>overwrite</if-exists>

            <instance-id>MyNewPortletInstance</instance-id>
            <portlet-ref>MyPortlet</portlet-ref>


            <instance-id>NavigationPortletInstance</instance-id>
            <portlet-ref>NavigationPortlet</portlet-ref>




            This works great. I'm now struggling with trying to set the theme.windowRendererId, theme.decorationRendererId, and theme.portletRendererId in the descriptor. If you come up with a solution for that, I'd appreciate you sharing it with me.

            Regards,

            Thom