In an XPage, the body tag always has a class of ‘tundra’ whether you have the property dojoTheme set to true or not.
When you set dojoTheme to true, the tundra.css file is loaded.
If you set the styleClass for the page to ‘soria’, the body tag class will change from tundra to soria, but the soria.css file will not be loaded and the tundra.css file will STILL be loaded.
My expectation would be that:
tundra is not included as a BODY class unless styleClass=tundra
tundra.css is only loaded when dojoTheme=true & styleClass=tundra
if dojoTheme=true & styleClass=soria, soria.css would be loaded and the BODY class would be set to soria.
I think the dojoTheme is getting set from the ViewRoot XPages element. I think that’s different to the XPage setting and wraps around it. You can modify the ViewRoot’s settings in a Theme.
If you create a Theme and set the styleClass there, does that have an effect. The XML would be something like:
I haven’t tried it, but this is based on some code Tim Tripcony posted to cover a different issue. That had tundra defined as one of the styleClasses of ViewRoot.
when you let the server do it’s own Default theme or even oneuiv2, there’s no theme doc for it to get that from. Suppose you could create a theme doc so you can control it that way.