you may use predefined a4jSkin object to dynamicaly set the skin from java code.
Ok! but can you show me the piece of code how to do that?
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.
tkalactomo, i do not understand your phrase about "touching and modifying dynamically the web.xml file" in case of
You need to manipulate with theme.look property, but with web.xml. web.xml is not required to be changed.