On 2010-01-14 15:36, Sean Radford wrote:
So are we saying there is an issue?

There certainly seems to be for me as when running with a VirtualHost
(proxy) things break due to the aforementioned URL prefixes.

Regards,

Sean

I would say that adding a prefix makes things more complicated than necessary and probably doesn't work. So yes that would be an issue.
just remove the:

resourcePath = path + "/nxthemes-lib/" in

        if (virtualHosting) {
            resourcePath = path + "/nxthemes-lib/"; <<<<<<<<
            nxthemeBasePath = path;
        }

in nuxeo/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/ui/Resources.java and in nuxeo/nuxeo-theme-html/src/main/java/org/nuxeo/theme/html/ui/ThemeStyles.java:

        String cssPath = "/nuxeo/nxthemes-css";
        if (virtualHosting) {
            cssPath = path + "/nxthemes-css"; <<<<<<<<<
        }

to see if it gets better.

/JM

Jean-Marc Orliaguet wrote:
On 2010-01-14 00:30, Sean Radford wrote:
Hi,

I don't think that

NXP-3916 -themes doesn't find its static resources behind a proxy

and consequently

NXP-4214 -Virtual Hosting issue in WebEngine when using NXThemes

are fixed....

For the JSF interface when org.nuxeo.theme.html.ui.Resources#render(...)
we have the following situations:

No Virtual Host
path = "/nuxeo"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/nxthemes-lib"
nxthemeBasePath = "/nuxeo/site"

Virtual Host
path = "/nuxeo"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/nxthemes-lib"
nxthemeBasePath = "/nuxeo" (ISN'T THIS WRONG?)


For the WebEngine interface when
org.nuxeo.theme.html.ui.Resources#render(...) we have the following
situations:

No Virtual Host
path = "/nuxeo/site/sites"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/nxthemes-lib"
nxthemeBasePath = "/nuxeo/site"

Virtual Host
path = "/nuxeo/site/sites"
basepath = "/nuxeo/site"
==>
resourcesPath = "/nuxeo/site/sites/nxthemes-lib" (ISN'T THIS WRONG?)
nxthemeBasePath = "/nuxeo/site/sites" (ISN'T THIS WRONG?)

Thoughts?

Sean


Hi,

To start with,
/nxthemes-css and /nxthemes-lib can be shared between sites, since the
theme's name, the site's path and the basepath are now included in the
URL.

So they could be placed directly under:
- /nuxeo/nxthemes-css/
- /nuxeo/nxthemes-lib/

without any prefix. That would simplify virtual hosting.

nxthemeBasePath is used by the theme editor and the web widgets, it
has to point to the base of webengine (/nuxeo/site/ under JBoss, and /
under jetty+webengine).

/JM





_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to