Note that there are some explanatory texts on larger screens.

plurals
  1. POUse OneUI theme depending on the installed version of Domino
    text
    copied!<p>Based on this snippet (<a href="http://openntf.org/XSnippets.nsf/snippet.xsp?id=oneui-on-the-fly-theme-changer" rel="nofollow">http://openntf.org/XSnippets.nsf/snippet.xsp?id=oneui-on-the-fly-theme-changer</a>) I tried to calculate the theme depending on the release of Domino. I'd like to use "oneuiv2.1" on Domino&lt;9 and "oneuiv3.0.2" on a 9 release.</p> <p>EDIT: To be clear: I already can identify the version, the question is about calculating and setting the theme at the right time as my following approaches seem to do the work too late. The page renders and then the theme is set - however this is my impression.</p> <p>These were my first approaches:</p> <ol> <li>Calculate the theme name in the "extends" property of the theme - didn't work.</li> <li>Calculate and set the value of the session property "xsp.theme" in a beforeRenderResponse and beforePageLoad event of my Xpage - this also failed</li> <li>Set up a bean to calculate the value and set the session property when the bean is initialized - same result</li> </ol> <p>Of cause you can calculate (render) all the needed stylesheets and scripts of OneUIv2.1 and OneUIv3 in the theme file but hey, this is quite a hassle with that amount of resources, isn't it?</p> <p>So my question is: do you have any other ideas how to achieve this? This would be very handy to use if your applications can use both themes with the same layout, independent where the application runs - whether on a 8.5.x or 9 machine.</p> <p>Looking forward to the discussion :-)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload