You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Elliot Metsger (JIRA)" <ji...@apache.org> on 2006/08/14 00:14:15 UTC

[jira] Assigned: (PLUTO-196) When one portlet calls RenderResponse.setTItle, the titles of other portlet windows are set to the value specified

     [ http://issues.apache.org/jira/browse/PLUTO-196?page=all ]

Elliot Metsger reassigned PLUTO-196:
------------------------------------

    Assignee: Elliot Metsger

> When one portlet calls RenderResponse.setTItle, the titles of other portlet windows are set to the value specified
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: PLUTO-196
>                 URL: http://issues.apache.org/jira/browse/PLUTO-196
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.0.1
>         Environment: Windows, Java 1.4
>            Reporter: Robert Simpson
>         Assigned To: Elliot Metsger
>            Priority: Minor
>             Fix For: 1.0.2
>
>
> When a portlet calls RenderResponse.setTitle, DynamicTitleServiceImpl.setDynamicTitle sets an attribute named "org.apache.pluto.dynamic_title".  On all subsequent calls to RenderResponse.getTitle, even from other portlets on the same portal page, DynamicTitleService.getDynamicTitle will return that value.  One workaround is to have every portlet call setTitle to set a dynamic title.
> FIX:
> In the setDynamicTitle method of DynamicTitleServiceImpl.java, change:
>         request.setAttribute("org.apache.pluto.dynamic_title", dynamicTitle);
> to:
>         request.setAttribute("org.apache.pluto.dynamic_title." + window.getId(), dynamicTitle);
> and in getDynamicTitle change:
>         return (String)request.getAttribute("org.apache.pluto.dynamic_title");
> to:
>         return (String)request.getAttribute("org.apache.pluto.dynamic_title." + window.getId());
> Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira