-
1. Re: Hide portlet
peterj Mar 4, 2008 11:32 AM (in response to ryousure2000)Set the security for the portlet instance. If the role has access to the portlet instance, the portlet will show; if not then it will not show.
-
2. Re: Hide portlet
ryousure2000 Mar 4, 2008 11:47 AM (in response to ryousure2000)I tried but instead of hiding the portlet ,
I am getting following error page
HTTP Status 403 -
--------------------------------------------------------------------------------
type Status report
message
description Access to the specified resource () has been forbidden. -
3. Re: Hide portlet
ryousure2000 Mar 4, 2008 12:01 PM (in response to ryousure2000)I defined security roles in portlet.xml and *-object.xml. which file I need to modify for portlet instance. THanks
-
4. Re: Hide portlet
peterj Mar 4, 2008 1:38 PM (in response to ryousure2000)Regarding the 403 error, it looks like you changed one of the portal properties. Under Page Error Handling, the "When access to the window is denied" case needs to have the action "Remove the resource from the page"; you have the action set to "Display the default error message."
You can specify security constraints for instances in the portlet-instances.xml file.