You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2007/09/24 15:38:50 UTC

[jira] Closed: (SLING-9) put theme object into request attribute in order to make it accessible "request wide"

     [ https://issues.apache.org/jira/browse/SLING-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed SLING-9.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

The theme is added as an attribute named "org.apache.sling.core.theme.Theme" for now.

> put theme object into request attribute in order to make it accessible "request wide"
> -------------------------------------------------------------------------------------
>
>                 Key: SLING-9
>                 URL: https://issues.apache.org/jira/browse/SLING-9
>             Project: Sling
>          Issue Type: Bug
>          Components: Core
>            Reporter: Philipp Koch
>             Fix For: 2.0.0
>
>
> the setTheme(Theme theme) method should put the passed theme object into a request attribute. the method is located in the com.day.sling.core.RequestData class.
> suggestion:
> public void setTheme(Theme theme) {
>         this.theme = theme;
>         servletRequest.setAttribute("com.day.sling.theme.theme", theme);
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.