You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2007/09/24 15:38:33 UTC

svn commit: r578810 - /incubator/sling/trunk/core/src/main/java/org/apache/sling/core/impl/RequestData.java

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) {