Remove Theme from Specific Xpages

I have an application that I am building that I would like to have two distinct “look and feels”. One of the feels is the one ui theme that comes with domino that is applied to the whole database. However I have some xpages that I want to exclude from that theme as they will be front end forms that non company members will be seeing.

Long story short, is there a way to exclude certain xpages from theme styling?

Subject: Re: Changing theme

As I found out from comments on a similar post on my blog about dynamically changing themes, you can use:context.setSessionProperty(“xsp.theme”, newID)

This will allow you to change the theme to something else. You would probably need to run this on your relevant XPages, resetting the theme back for the others.

For info, the blog article is here:

http://hermes.intec.co.uk/Intec/Blog.nsf/dx/15122009140307HERJGZ.htm

Subject: still quirky

where would I put this code? I put it on the beforepageload as well as the beforerenderresponse.

The problem I am still having is when the page is loaded for the first time it still has the theme associated with it. Once I reload it the theme is gone like I want.

Is there a way to do this when the page is first loaded. PS this page is not coming from another xpage but an email, so this cannot be set on another xpage unfortunately.

Subject: The theme doesn’t need to be different, just the theme computations

So you can keep one theme, however compute which stylesheets to send.

ie if you had two XPage’s red.xsp and blue.xsp - compute different stylesheets like this in the theme:

            <content-type>text/css</content-type> 

            <href>blue.css</href> 
            <content-type>text/css</content-type> 

            <href>red.css</href> 

Subject: also tried

I also tried going to the xpage all properties and setting “disableTheme” to true, for some reason it did not work however.

I then went into a specific control (button) and set “disabletheme” to true again and it disabled the theme for the button.

Am i missing something? Ideally i would just like to disable the theme for the whole xpage.

Subject: didn’t work

I added the following to my theme

text/css

http://www.domain.com/content.css

The xpage is called profile.xsp and nothing changed. Am I doing something wrong?