• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any similar to Spring themes in JSF?

 
Luke Murphy
Ranch Hand
Posts: 300
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 300
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic