-
1. Re: Changing themes
ilya_shaikovsky May 11, 2007 7:49 AM (in response to tkalactomo)you may use predefined a4jSkin object to dynamicaly set the skin from java code.
-
2. Re: Changing themes
tkalactomo May 11, 2007 8:01 AM (in response to tkalactomo)Ok! but can you show me the piece of code how to do that?
-
3. Re: Changing themes
ilya_shaikovsky May 11, 2007 8:47 AM (in response to tkalactomo)Sorry I missed the point...
Ignore my post about this bean.. It was designed for another case.
From the beggining your way was right.. When you point org.ajax4jsf.SKIN to your bean in web.xml - you didn't make the web.xml dynamically changed as you write. You just make your bean responsible for saving and switching application skin. So the way you described from the beggining - was designed way to perform the chanes. -
4. Re: Changing themes
sergeysmirnov May 11, 2007 3:30 PM (in response to tkalactomo)tkalactomo, i do not understand your phrase about "touching and modifying dynamically the web.xml file" in case of
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>#{theme.look}</param-value>
</context-param>
You need to manipulate with theme.look property, but with web.xml. web.xml is not required to be changed.