Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.1
-
None
-
Windows, Java 1.4
Description
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.