You're trying to set the title from within the portlet content if I
understand well ? Well that's too late, the title was already generated...
When Jetspeed renders a portlet, it does it this order :

- Top bar : title + action buttons
- Content : call getContent() : too late to change the titlte

Although the second time you show the portlet the title "should" be the new
one, I mean the one before :)

Using a JSPPortlet, you'lle have to change the title using buildcontent()
instead of getcontent(). See doc for more information.

HTH,
Aurelien

Fletcher, Boyd C. J9C534 a ecrit :

> We have a requirement to manipulate the portlet's title in JSP. The
> jetspeed javadocs
> (http://jakarta.apache.org/jetspeed/api/org/apache/jetspeed/po
> rtal/portl ets/JspPortlet.html) seem to imply the following should
> work, but it doesn't.  
> 
> <%
>   Portlet portletData = (Portlet)request.getAttribute("portlet");
>   portletData.setTitle("Fiddle Sticks");
> %>
> 
> 
> Any one have any ideas either why this doesn't work or how to set the
> title from within JSP Portlet.
> 
> thanks,
> 
> boyd

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

Reply via email to