incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r578810 - /incubator/sling/trunk/core/src/main/java/org/apache/sling/core/impl/RequestData.java
Date Mon, 24 Sep 2007 13:38:33 GMT
Author: cziegeler
Date: Mon Sep 24 06:38:32 2007
New Revision: 578810

URL: http://svn.apache.org/viewvc?rev=578810&view=rev
Log:
Add theme object to request attributes (SLING-9)

Modified:
    incubator/sling/trunk/core/src/main/java/org/apache/sling/core/impl/RequestData.java

Modified: incubator/sling/trunk/core/src/main/java/org/apache/sling/core/impl/RequestData.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/core/src/main/java/org/apache/sling/core/impl/RequestData.java?rev=578810&r1=578809&r2=578810&view=diff
==============================================================================
--- incubator/sling/trunk/core/src/main/java/org/apache/sling/core/impl/RequestData.java (original)
+++ incubator/sling/trunk/core/src/main/java/org/apache/sling/core/impl/RequestData.java Mon
Sep 24 06:38:32 2007
@@ -463,6 +463,9 @@
      */
     public void setTheme(Theme theme) {
         this.theme = theme;
+        // provide the current theme to components as a request attribute
+        // TODO - We should define a well known constant for this
+        this.servletRequest.setAttribute(Theme.class.getName(), theme);
     }
 
     public void setOriginalURL(String originalURL) {



Mime
View raw message