aspose file tools*
The moose likes JSF and the fly likes Is there any similar to Spring themes in JSF? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Is there any similar to Spring themes in JSF?" Watch "Is there any similar to Spring themes in JSF?" New topic
Author

Is there any similar to Spring themes in JSF?

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Spring themes allow end users to dynamically change look and feel.
From a design/ architecture point of view all the theme is, is a static group of resources such as stylesheet, images etc.
Multiple themese can be configured and then the user can switch between by simple passing a desginated parameter (usually "theme") in a servlet request.
For demo see here: http://viralpatel.net/blogs/2010/10/spring-3-mvc-themes-tutorial-example.html

Just wondering what would be the closest JSF has to match this feature? Or how would you do it in JSF?
Thanks.
Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Here is something pretty similar...

http://www.andygibson.net/blog/tutorial/implementing-user-selectable-themes-in-jsf/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is there any similar to Spring themes in JSF?