programming is another way to affect any the portlet in question. I tried
this with the HelloWorld portlet example from bluesunrise and the close icon

disappeared from the portlet

public class HelloWorldPortlet extends AbstractPortlet
{
    public boolean allowClose(org.apache.turbine.util.RunData rundata){
      // try to overide close icon behaviors
      return false;
    } 
by implemnting the allowclose method in your portlet and returning a 
value of false, the portlet framework does not put the decoration on
your portlet instances...  I hope this helps.
regards,
Brian

Brian Dealy
 email [EMAIL PROTECTED]
 


-----Original Message-----
From: Frederic Hahn [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 05, 2002 5:11 AM
To: [EMAIL PROTECTED]
Subject: How can I remove the "close"- Button in a Portlet ?


Hi guys,

I am trying to remove the "close" (X) button from a portlet. I dont want the
user to be able to remove a portlet. Is this possible and where can I do it?

Could this even be done dependant on the user profile?

Thanks for your answers,

Frederic



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to