Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-196

When one portlet calls RenderResponse.setTItle, the titles of other portlet windows are set to the value specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.1
    • unspecified
    • portal driver
    • 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.

      Attachments

        Activity

          People

            emetsger Elliot Metsger
            robs Robert Simpson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: