[
http://issues.apache.org/jira/browse/MYFACES-908?page=comments#action_12362318
]
Daniel Lefevre commented on MYFACES-908:
----------------------------------------
As the path is specified in a variable, the reverse proxy cannot adapt it. The
solution would be to put the absolute reference in this variable.
The correction should be made in the method "addThemeSpecificResources" of the
"org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer" class.
The lines:
StringBuffer buf = new StringBuffer();
buf.append("my");
buf.append(themeName);
buf.append("Base='");
should be replaced by:
StringBuffer buf = new StringBuffer();
buf.append("my");
buf.append(themeName);
buf.append("Base=location.protocol+'//'+location.host+'");
> jscookmenu: images do not appear
> --------------------------------
>
> Key: MYFACES-908
> URL: http://issues.apache.org/jira/browse/MYFACES-908
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Environment: acces application from the web via a reverse proxy
> Reporter: Daniel Lefevre
> Priority: Minor
>
> When using jscookmenu, the generated javascript uses a relative reference for
> the value of the myThemeOfficeBase variable:
> var
> myThemeOfficeBase='/myapp/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/';
> This causes images to not appear when accessing the application via a reverse
> proxy.
> An absolute reference should be used instead, as for the js files references:
> myThemeOfficeBase='https://myserver/myapp/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/';
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira