-
1. Re: Problem adding navigation portlet to page
tkornechuk Sep 27, 2006 12:14 PM (in response to thatporguy)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 Sep 27, 2006 12:16 PM (in response to thatporguy)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