I had the same problem and following jscookmenu definition solved my problem...
       <t:jscookMenu layout="vbr" theme="ThemeOffice"
                org.apache.myfaces.STYLE_LOCATION="/faces/theme/jscookmenu/">
                     <t:navigationMenuItems value="#{navigationMenu.menu}" />
        </t:jscookMenu>

regards....

On 9/14/06, Tom Innes <[EMAIL PROTECTED]> wrote:

I am trying to override the Stylesheet on JsCookMenu.  I am using Facelets.

 

I have tried the work around to the bug referenced here

 

https://issues.apache.org/jira/browse/TOMAHAWK-575

 

I have taken the theme.css from 1.15 Snapshot of about a month ago and placed it in a new file location under my project.  Using the above workaround without even changing the Style Sheet it displays differently.

            For Instance,

1.       No Background Colors on the Main  Menu

2.       Menu Items are not displayed to the right

3.       Menu Items are always Displayed, etc

 

I am basically using the Dynamic Menu as Referenced here

 

http://wiki.apache.org/myfaces/Dynamic_Menus_with_JSCookMenu

 

And my Page Looks Like

<t:jscookMenu layout="hbr"

              theme="ThemeOffice"

              org.apache.myfaces.STYLE_LOCATION="#{facesContext.externalContext.requestContextPath}/pages/css/jscookmenu/ThemeOffice/theme.css"

              >

              <!-- Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack,ThemeOffice, ThemePanel

                         Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr,vbl, vur, vul

                     respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu

              -->

                <t:navigationMenuItems id="navigationMenuItemsId" value="#{dynamicMenu.navigationItems}" />

</t:jscookMenu>

 

 

Any Suggestions on how I can override the StyleSheet?

 

Tom

 

Ps the Following needs to be added to the Wiki to get Facelets to work with JSCookMenu and Dynamic Menu's

 

http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk

 

<tag>
        <tag-name>navigationMenuItems</tag-name>
        <component>
               <component-type>
                       javax.faces.SelectItems

               </component-type>
        </component>

</tag>

 




--
Murat HAZER
http://www.projedunyasi.org

Reply via email to