You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Lefevre, Daniel" <da...@siemens.com> on 2005/12/06 10:26:33 UTC
Issue with images in jscookmenu
Hello
I'm dealing successfully with the jscookmenu component when I work on
the test environments. But when I put the application in the production
environment, the jsCookMenu does not display the images anymore.
The difference is that the production environment is accessible via a
reverse proxy.
When I look into the generated page, I see the following:
<head>
<script type="text/javascript"
src="https://myserver/myapp/faces/myFacesExtensionResource/org.apache.my
faces.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookm
enu.HtmlJSCookMenuRenderer/JSCookMenu.js"><!--
//--></script>
<script type="text/javascript"
src="https://myserver/myapp/Sigl4/faces/myFacesExtensionResource/org.apa
che.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.j
scookmenu.HtmlJSCookMenuRenderer/MyFacesHack.js
<https://webgate.cec.eu.int/sigl2test/Sigl4/faces/myFacesExtensionResour
ce/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878
/navmenu.jscookmenu.HtmlJSCookMenuRenderer/MyFacesHack.js> "><!--
//--></script>
<script type="text/javascript"><!--
var
myThemeOfficeBase=/myapp/faces/myFacesExtensionResource/org.apache.myfac
es.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookmenu
.HtmlJSCookMenuRenderer/ThemeOffice/';
//--></script>
<script type="text/javascript"
src="https://myserver/myapp/Sigl4/faces/myFacesExtensionResource/org.apa
che.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.j
scookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.js
<https://webgate.cec.eu.int/sigl2test/Sigl4/faces/myFacesExtensionResour
ce/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878
/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.js> "><!--
//--></script>
As you can see, all references are absolute, except the initialisation
of the myThemeOfficeBase variable which uses a relative reference to the
theme directory.
I think this is the reason of the problem. This reference should be made
absolute as the others and the images will then be rendered correctly,
even via a reverse proxy.
Yours, Dan
Re: Issue with images in jscookmenu
Posted by Bruno Aranda <br...@gmail.com>.
Could you submit a JIRA [1] issue explaining the problem, so we do not forget?
Regards,
Bruno
[1] http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10600
2005/12/6, Lefevre, Daniel <da...@siemens.com>:
>
> Hello
>
> I'm dealing successfully with the jscookmenu component when I work on the
> test environments. But when I put the application in the production
> environment, the jsCookMenu does not display the images anymore.
> The difference is that the production environment is accessible via a
> reverse proxy.
> When I look into the generated page, I see the following:
>
> <head>
> <script type="text/javascript"
> src="https://myserver/myapp/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookmenu.HtmlJSCookMenuRenderer/JSCookMenu.js"><!--
>
> //--></script>
> <script type="text/javascript"
> src="https://myserver/myapp/Sigl4/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookmenu.HtmlJSCookMenuRenderer/MyFacesHack.js"><!--
>
> //--></script>
> <script type="text/javascript"><!--
> var
> myThemeOfficeBase=/myapp/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/';
> //--></script>
> <script type="text/javascript"
> src="https://myserver/myapp/Sigl4/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11337878/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.js"><!--
> //--></script>
>
> As you can see, all references are absolute, except the initialisation of
> the myThemeOfficeBase variable which uses a relative reference to the theme
> directory.
> I think this is the reason of the problem. This reference should be made
> absolute as the others and the images will then be rendered correctly, even
> via a reverse proxy.
>
> Yours, Dan