Yes I have a custom theme working, here are the steps
(cut and pasted from an earlier post).
I'm using Tomahawk and MyFaces release 1.1.1 and trying to create a
custom theme for jscookmenu.
I've extract all the files from
org.apache.myfaces.custom.navmenu.jscookmenu.resource.ThemeOffice
to folder /jscookmenu under my webroot.
And also extracted the files JSCookMenu.js and MyFacesHack.js
into the same /jscookmenu folder.
I've discovered that I have to name my theme the same as one of the
builtin themes, I choose "ThemeOffice".
For javascriptLocation, imageLocation, and styleLocation you have to
give a full context path so I've specified it like this:
javascriptLocation="#{facesContext.externalContext.request.contextPath}/
jscookmenu"
Example:
<t:jscookMenu id="OwnerMenu" layout="hbr" theme="ThemeOffice"
javascriptLocation=
"#{facesContext.externalContext.request.contextPath}/jscookmenu"
imageLocation=
"#{facesContext.externalContext.request.contextPath}/jscookmenu"
styleLocation=
"#{facesContext.externalContext.request.contextPath}/jscookmenu">
<t:navigationMenuItem
id="Menu_Owner_Main"
itemLabel="#{bundle.Menu_Owner_Main}"
action="Menu_Owner_Main" />
<t:navigationMenuItem id="Menu_Link_Menu"
itemLabel="#{bundle.Menu_Link_Menu}"
action="Menu_Link_Menu"
rendered="#{authenticationBean.LinkPermission}" />
<t:navigationMenuItem id="Menu_Admin_Menu"
itemLabel="#{bundle.Menu_Admin_Menu}"
action="Menu_Admin_Menu"
rendered="#{authenticationBean.AdminPermission}" />
<t:navigationMenuItem id="Menu_Owner_Help"
itemLabel="#{bundle.Menu_Owner_Help}"
action="Menu_Owner_Help"
icon="#{bundle.Menu_Image_Help}" />
<t:navigationMenuItem id="Menu_Logout"
itemLabel="#{bundle.Menu_Logout}"
action="#{authenticationBean.logout}" />
</t:jscookMenu>
-----Original Message-----
From: Brian Woolf [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 25, 2006 8:25 AM
To: [email protected]
Subject: jscookmenu and custom themes in 1.1.1
hi:
Does anyone know, how to using custom themes for the jscookmenu
component
in myFaces release.1.1.1? My pages worked correctly in myfaces release
1.1.1,so I don't switched to nightly build.
Thanks,
--
View this message in context:
http://www.nabble.com/jscookmenu-and-custom-themes-in-1.1.1-t1341339.htm
l#a3586688
Sent from the MyFaces - Users forum at Nabble.com.