History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1077
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Eric Molitor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

setting theme in page, context, or session scope has not effect

Created: 09/Jan/06 04:04 PM   Updated: 25/Jan/06 02:51 AM
Component/s: Views, Value Stack
Affects Version/s: 2.2
Fix Version/s: 2.2

Environment: Any
Issue Links:
Container
 
This issue is part of:
WW-1120 Allow setting templateSuffix on a per... Major Closed

Flags: Important


 Description  « Hide
Using the set tag to set a theme is not work.

EG: <ww:set name="theme" value="simple" /> does nothing and webwork continues to use whatever was set in the properties file. Per the FAQ and the DOCS this should set the theme to simple for whatever scope the set was on. (Default Page.)

(templateDir and templateSuffix do not work either but not sure if they ever did, would be nice though)


 All   Comments   Change History      Sort Order:
Patrick Lightbody - [09/Jan/06 06:40 PM ]
Part of this is not a bug. The reason ww:set isn't working is because the value needs to be "'simple'", not "simple".

Not sure what is up with the other problem, so i'm leaving this bug opened.

tm_jee - [09/Jan/06 09:44 PM ]
I don't think this is a bug. I think another reason besides "'simple'", is the scope needs to be set to scope="page", <ww:set ...> without scope goes into the stack's context. UIBean's getTheme(), getTemplateDir() etc. uses #attr.theme, #attr.templateDir etc. AttributeMap does not search the stack's context.

I think <ww:set name="theme" value="'simple'" scope="page" /> should work.

There's some mistake i made while creating the docs at http://wiki.opensymphony.com/pages/viewpage.action?pageId=6164 :-P I'll fix them asap. Sorry for the confusion.

Eric Molitor - [11/Jan/06 01:49 PM ]
Yup, not a bug and the docs are now fixed. Someone should close this as the WW Jira isn't setup for the reporter to be able to resolve or close issues.

Rainer Hermanns - [11/Jan/06 01:52 PM ]
[8:51 PM] emolitor: Can someone close or resolve WW-1077 since the docs are fixed (NAB)