You will need to alter the portlet at the registry level as opposed to the profile 
level.

// retrieve the portlet in question from the registry
PortletEntry entry = (PortletEntry) Registry.getEntry("Registry.PORTLET", "MyPortlet");

// retrieve the parameter we want to change
Parameter param = entry.getParameter("parameter-to-change");

if(param != null)
{
  param.setValue("new value");
  // Used for both adding AND updating entries.
  Registry.addEntry("Registry.PORTLET", entry);
}

Scott



> -----Original Message-----
> From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 03, 2002 11:04 AM
> To: Jetspeed Users List
> Subject: portlet.setAttribite
> 
> Hi,
> i have a question regarding the parameters of a portlet:
> When i do a portlet.setAttribute() it sets that just for the user that
> is viewing the portlet. I would like to set that for all users.
> (example, only an admin can configure a protlet that users can only view
> so they should see tha changes)
> I'm not sure if there is another function that does it in that way.
> 
> Thanks,
> |- Raffaele Ragni < [EMAIL PROTECTED] >
> |- Tel 071 2900854 / Fax 071 2908551 / Cel 333 3659770
> |- CONE Sistemi Informativi
> 

Reply via email to