[ http://issues.apache.org/jira/browse/PLUTO-196?page=all ]
Craig Doremus updated PLUTO-196: -------------------------------- Fix Version: 1.0.2 > 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 > Type: Bug > Components: portal driver > Versions: 1.0.1 > Environment: Windows, Java 1.4 > Reporter: Robert Simpson > 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