Hello,
I can reply myself.
I have switched from JSF RI 1.2_03 to MyFaces 1.1.5 and it works now.
So it looks like jscookmenu does not work with JSF RI in mozilla and
firefox.
Regards
Andrzej
Andrzej Jakubowski wrote:
Hello,
I have got a problem with jscookmenu in firefox 2, 1.0 (linux),
Mozilla 1.7.2 (MS).
Menu does not dispaly at all, and in the JS console some errors appear.
Menu works fine in Opera and in IE 6.
Errors from firefox:
Error: myThemeOfficeBase is not defined
Plik źródłowy:
http://localhost:8080/jsf1.2-tomahawk-facelets/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11660112/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.js
Wiersz: 4
Error: item has no properties
Plik źródłowy:
http://localhost:8080/jsf1.2-tomahawk-facelets/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11660112/navmenu.jscookmenu.HtmlJSCookMenuRenderer/JSCookMenu.js
Wiersz: 119
I am using facelets, tomahawk-1.1.5-SNAPSHOT
sample file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk">
<body>
<h:form>
<h:messages />
<t:outputText value="Hello"/>
<t:jscookMenu layout="hbr" theme="ThemeOffice">
<t:navigationMenuItem id="nav_1" itemLabel="1" itemValue="go_home"
action="go_home" />
<t:navigationMenuItem id="nav_2" itemLabel="2">
<t:navigationMenuItem id="nav_2_1" itemLabel="3"
action="go_sample1" />
<t:navigationMenuItem split="true">
</t:navigationMenuItem>
<t:navigationMenuItem id="nav_2_2" itemLabel="4"
action="go_sample2"
icon="images/myfaces.gif" />
<t:navigationMenuItem id="nav_2_4" itemLabel="5"
icon="images/component.gif" split="true">
</t:navigationMenuItem>
</t:navigationMenuItem>
<t:navigationMenuItem id="nav_3" itemLabel="Apache MyFaces Home"
action="http://myfaces.apache.org" />
</t:jscookMenu>
</h:form>
</body>
</html>
Any ideas?
Regards
Andrzej
--
Andrzej Jakubowski
http://www.ericpol.pl/