I put all of the images, _javascript_s, css's to the overrriden STYLE_LOCATION path. So i only override STYLE_LOCATION.

i don't see any warnings in the log files, what is the version of the facelets?


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

Thanks Murat,

 

I finally figured out that the STYLE_LOCATION is just that a location and that MyFaces converts it into an absolute path.

 

What I was doing was passing an absolute path.  Once I changed the location to a relative one it worked.  Though it does leave a message in the log.

 

11:31:14,048 INFO  [STDOUT] 15-Sep-2006 11:31:14 AM com.sun.facelets.tag.jsf.ComponentRule warnAttr

WARNING: /pages/jsfSection.xhtml @21,20 org.apache.myfaces.STYLE_LOCATION="/pages/css/jscookmenu"

Property 'org.apache.myfaces.STYLE_LOCATION' is not on type:

org.apache.myfaces.custom.navmenu.jscookmenu.HtmlCommandJSCookMenu

 

 

I did try

 

org.apache.myfaces._javascript__LOCATION and

org.apache.myfaces.IMAGE_LOCATION

 

and neither of those worked.

 

Have you had any luck in overriding either of these with Facelets.

 

Tom

 

 

 

-----Original Message-----
From: Murat Hazer [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 15, 2006 3:41 AM
To: MyFaces Discussion
Subject: Re: JSCookMenu Stylesheet and Facelets Problem

 

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




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

Reply via email to