Posted by
stessy on
URL: https://discuss.orbeon.com/Separate-deployment-FilesystemResourceManagerFactory-CSS-problem-tp1560229p1567517.html
Alessandro,
I succeeded in configuring the href attribute in link tag to keep the css folder inside my forms structure.
<xhtml:link rel="stylesheet" type="text/css" href="/orbeon/css/epss-forms.css"/>
If I understand correctly, the orbeon context points to the root folder mentioned in the web.xml
Now when the application analyzes the url, if the root context is not 'orbeon', it doesn't add the orbeon context in the href attribute of the link tag displayed above.
For example:
URL http://localhost:7101/epss/orbeon/epss-forms/CP-IP/A2href becomes: href="/epss/orbeon/css/epss-forms.css"
on the other hand, if I use orbeon alone
URL http://localhost:7101/orbeon/epss-forms/CP-IP/A2href becomes: href="/orbeon/orbeon/css/epss-forms.css"
And the css is not found.
And I have to modify the href by removing the leading '/orbeon' to have my css found.
Is that correct ??
My question is: Is it possible to have a path relative to the page-flow.xml file for the css ??
With the images I still have problems.
The images are launched via xforms:output
<xforms:output mediatype="image/*" value="'/orbeon/images/CP-IP-A2.gif'"/>
I really don't know what value I have to put to have my image displayed. I don't know from where the application searches.
I already tried multiple solutions:
1. relative to the page-flow.xml (value="'images/CP-IP-A2.gif'")
2. relative to the form (value="'../images/CP-IP-A2.gif'")
3. absolute to orbeon (value="'/orbeon/images/CP-IP-A2.gif'")
I think that I'm missing something, but I don't know what.
Thanks a lot for your help.
Regards,
Stessy