portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r432920 - /portals/pluto/branches/pluto-1.0.2/portal/src/java/org/apache/pluto/portalImpl/core/DynamicTitleServiceImpl.java
Date Sun, 20 Aug 2006 01:17:50 GMT
Author: esm
Date: Sat Aug 19 18:17:49 2006
New Revision: 432920

URL: http://svn.apache.org/viewvc?rev=432920&view=rev
Log:
[PLUTO-196]: Updated the Dynamic Title Service to store portlet titles using the PortletWindow
Id.  The request attribute is now "org.apache.pluto.dynamic_title"+window.getId()

Fix submitted by Robert Simpson (robs.apache1@MailScreen.com) - thanks Robert!

Modified:
    portals/pluto/branches/pluto-1.0.2/portal/src/java/org/apache/pluto/portalImpl/core/DynamicTitleServiceImpl.java

Modified: portals/pluto/branches/pluto-1.0.2/portal/src/java/org/apache/pluto/portalImpl/core/DynamicTitleServiceImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/pluto-1.0.2/portal/src/java/org/apache/pluto/portalImpl/core/DynamicTitleServiceImpl.java?rev=432920&r1=432919&r2=432920&view=diff
==============================================================================
--- portals/pluto/branches/pluto-1.0.2/portal/src/java/org/apache/pluto/portalImpl/core/DynamicTitleServiceImpl.java
(original)
+++ portals/pluto/branches/pluto-1.0.2/portal/src/java/org/apache/pluto/portalImpl/core/DynamicTitleServiceImpl.java
Sat Aug 19 18:17:49 2006
@@ -35,13 +35,13 @@
                                 HttpServletRequest request,
                                 String dynamicTitle)
     {
-        request.setAttribute("org.apache.pluto.dynamic_title", dynamicTitle);
+        request.setAttribute("org.apache.pluto.dynamic_title"+window.getId(), dynamicTitle);
     }
                                 
     public String getDynamicTitle(PortletWindow window,
                                   HttpServletRequest request)
     {
-        return (String)request.getAttribute("org.apache.pluto.dynamic_title");
+        return (String)request.getAttribute("org.apache.pluto.dynamic_title"+window.getId());
     }
 
 



Mime
View raw message