1
votes

This question covers adding XPages css resources via a theme which references a resource nsf database by adding /.ibmxpsres/domino to the path eg.

<resource>
<content-type>text/css</content-type>
<href>/.ibmxspres/domino/CommonElements.nsf/styles.css</href>
</resource>

This works fine in a browser the mark up generated being..

...href="/CommonElements.nsf/styles.css"

However in a Notes Client this results in ..

... href="/xsp/.ibmxspres/domino/xsp/CommonElements.nsf/styles.css

Which does not seem correct, I think I may need it to generate the following mark up in XPiNC.

href="/xsp/"servername"!!CommonElements.nsf/xsp/styles.css"

I have restarted Notes, used Ctrl Shift Del to try to remove any Notes cache, but I cannot get the style sheet to work.

I have resorted to using the full domain of the server http://mydomain/CommonElements.nsf/styles.css but I wish it to be server independent and allow the use of local copies when off line.

Any help would be appreciated.

Thanks

1

1 Answers

1
votes

The client URL is correct. It says: load from the same server as the XPage. On the Notes client that is local host unless you specified that the page should be loaded from the server.

You have 3 options:

  • as you did: specify the server
  • set the property to load the XPage on the server
  • use a policy to push down your resource database to the clients

Note: when an XPage run locally on a client, the application scope is not shared with other clients. That only happens in server mode.