[jboss-user] [JBoss Portal] - Re: 2.4.1: how to dynamically select css file for a page

bvogt do-not-reply at jboss.com
Thu Jun 28 02:23:41 EDT 2007


I have a solution, although it's somewhat like a hack...

- the page has been defined a 'declaredProperty', e.g. 'layout'
- the declaredProperty is retrieved within a portlet instance, which is placed on every page, and set into the APPLICATION_SCOPE's session
- a custom ThemeTagHandler retrieves the layout value from the page-context's session and replaces the css file generated by theme.assembleResponse()

Is there a smarter way of doing this in Portal 2.4?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058551#4058551

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058551



More information about the jboss-user mailing list