There is a way to define his own style outside of the jar.
create a myTheme folder containing two files : theme.js and theme.css 
put the image you need for your style.

respect the structure of the CSS for the modification (copy one of existing 
theme and modify it) (the js does not need to be changed normally)

in the <head> of your jsp put these : (the src values must be the correct paths 
to the files)
<script 
src="/faces/myFacesExtensionResource/navmenu.NavigationMenuItem/1113412660000/jscookmenu/JSCookMenu.js"
        type="text/javascript"></script>
<script src="/myTheme/theme.js"
        type="text/javascript"></script>
<link rel="stylesheet" href="/myTheme/theme.css"
        type="text/css" />



when using the menu tag just specify myTheme as theme and the wanted layout :
<x:jscookMenu layout="hbr" theme="myTheme">

ced



> De: "Polanki, Varada (Exchange)" <[EMAIL PROTECTED]>
> A: "MyFaces Discussion" <[email protected]>
> Objet: RE: JSCookmenu, using Themes / Stylesheets
> Date: Tue, 31 May 2005 10:15:54 -0400

> Hi Rene,
>      Even I too need to change the styles of JSCookMenu. I think we need
> to change CSS and JS files of Jar file. Let me know if you find another
> solution.
> 
> Regards,
> Varada.
> 
> -----Original Message-----
> From: Rene Guenther [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, May 28, 2005 12:43 PM
> To: 'MyFaces Discussion'
> Subject: JSCookmenu, using Themes / Stylesheets
> 
> How to use own Themes and Stylesheets with JSCookMenu? I tried to follow
> instructions which I found on
> <a 
> href=http://myfaces.apache.org/components/jscookmenu.html>http://myfaces.apache.org/components/jscookmenu.html</a>.
>  But all the CSS
> and
> JS are part of the packages. Do I have to overwrite the files of the
> package
> myfaces-extensions.jar? Is it possible to add new Themes?
> 
> Thanks
> Rene
> 
> 
> 
> 
> 
> 
> **********************************************************************
> Please be aware that, notwithstanding the fact that the person sending
> this communication has an address in Bear Stearns' e-mail system, this
> person is not an employee, agent or representative of Bear Stearns.
> Accordingly, this person has no power or authority to represent, make
> any recommendation, solicitation, offer or statements or disclose
> information on behalf of or in any way bind Bear Stearns or any of its
> affiliates.
> **********************************************************************

Protek-on: CaraMail met en oeuvre un nouveau Concept de Sécurité Globale - 
www.caramail.com

Reply via email to