You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Tom Innes <To...@allTiers.com> on 2006/09/14 22:46:33 UTC
JSCookMenu Stylesheet and Facelets Problem
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.requestCon
textPath}/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>
RE: JSCookMenu Stylesheet and Facelets Problem
Posted by Tom Innes <To...@allTiers.com>.
I use the version that comes with Exadel Studio from around June. My guess
is that it is the 1.11 Release.
The message occurs the first time the page is compiled.
When I finish with the changes to the Stylesheet I will see if I can modify
the JavaScript and have it behave differently.
Thanks for the help,
Tom
-----Original Message-----
From: Murat Hazer [mailto:murathazer@gmail.com]
Sent: Friday, September 15, 2006 11:45 AM
To: MyFaces Discussion
Subject: Re: JSCookMenu Stylesheet and Facelets Problem
I put all of the images, javascripts, 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 <To...@alltiers.com> 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:murathazer@gmail.com]
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 < Tom.Innes@alltiers.com
<ma...@alltiers.com> > 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.requestCon
textPath}/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
<http://www.cs.ucla.edu/%7Eheng/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
Re: JSCookMenu Stylesheet and Facelets Problem
Posted by Murat Hazer <mu...@gmail.com>.
I put all of the images, javascripts, 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 <To...@alltiers.com> 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:murathazer@gmail.com]
> *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* <To...@alltiers.com> 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<http://www.cs.ucla.edu/%7Eheng/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
RE: JSCookMenu Stylesheet and Facelets Problem
Posted by Tom Innes <To...@allTiers.com>.
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:murathazer@gmail.com]
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 <To...@alltiers.com> 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.requestCon
textPath}/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
<http://www.cs.ucla.edu/%7Eheng/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
Re: JSCookMenu Stylesheet and Facelets Problem
Posted by Murat Hazer <mu...@gmail.com>.
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 <To...@alltiers.com> 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<http://www.cs.ucla.edu/%7Eheng/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