Hi I have another problem with JSCookMenu.

I am using frames. Can someone tell me how to change the javascript in
JSCookMenu to use frames? 

-----Original Message-----
From: Lindholm, Greg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 15, 2006 10:31 PM
To: MyFaces Discussion
Subject: jscookMenu and custom theme


I'm using Tomahawk and MyFaces release 1.1.1 and trying to create a
custom theme for jscookmenu.

I've seen that many changes will be coming with the next release but for
now I'm trying to make 1.1.1 work.

So far it's been difficult :)

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"



It seems to be working, and everything looks the same, EXCEPT....

MY PROBLEM:
All the spacing between menu items is gone.
The menu items are crammed together with no space between them.

At this point the only change I've made to the JSP is to add the 3
location attibutes to the jscookMenu tag.
I changed one color in the /jscookmenu/theme.css just to prove it really

was being used.

Has anyone seen this before? Any idea what would cuase this?



Here is the example menu I'm testing with:

<t:jscookMenu id="OwnerMenu" layout="hbr"       theme="ThemeOffice"
        
javascriptLocation="#{facesContext.externalContext.request.contextPath}/
jscookmenu"
        
imageLocation="#{facesContext.externalContext.request.contextPath}/jscoo
kmenu"
        
styleLocation="#{facesContext.externalContext.request.contextPath}/jscoo
kmenu">
        <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>




Reply via email to