Hello,

If you use the JSCookMenu tag, and correctly configure the extension filter
(default config) in the web.xml, you don't need to define any Javascript
In your page. The corresponding file are automatically uploaded on the
client and referenced in he page.
As there is a bug in the 1.0.9 version, you have to download the latest
nightly build where the bug is resolved.

Have a look at the mail from Bruno Aranda (09 jun 2005). There is an exemple
how to use the menu in a dynamic way. 

If you download the latest nightly build, the extension are now in the
tomahaw.jar. You should then use the prefix t.

Hope this help.

If still problem, please ask.

Henri-Philippe Delbrouck

-----Original Message-----
From: Helmut Juskewycz [mailto:[EMAIL PROTECTED] 
Sent: mercredi 24 août 2005 11:09
To: MyFaces Discussion
Subject: Re: problem with JSCookMenu


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

u must add the following to the header:

  <!-- JSCook Menu -->
  <script language="JavaScript" src="jscookmenu/JSCookMenu.js"
type="text/javascript"></script>
  <script language="JavaScript"
src="jscookmenu/ThemePanel/theme.js"></script>
  <link rel="stylesheet" href="jscookmenu/ThemePanel/theme.css"
type="text/css">



optional: Get the latest Nightly Build because there were some bugs with
submenus.

then just add the jscookmenu and the items. u can add the items like in
the example (you can find it in the myfaces examples/inc/pageHeader, and
correct the theme u would like to use - same must defined in the header):



    <x:jscookMenu layout="hbr" theme="ThemeOffice" >
        <%/* 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
        */%>
        <x:navigationMenuItem id="nav_1"
.
.
.
.
.
.
        </x:navigationMenuItem>
        <x:navigationMenuItem id="nav_3"
itemLabel="#{example_messages['nav_Documentation']}" >
            <x:navigationMenuItem id="nav_3_1"
itemLabel="#{example_messages['nav_Features']}" action="go_features"
icon="images/myfaces.gif" />
        </x:navigationMenuItem>
        <x:navigationMenuItem id="nav_4"
itemLabel="#{example_messages['nav_Options']}" action="go_options" />
        <x:navigationMenuItems id="nav_5"
value="#{navigationMenu.infoItems}" />

    </x:jscookMenu>

or the other way:

        <x:jscookMenu layout="vbr" theme="ThemePanel">
                <x:navigationMenuItems value="#{MenuBean.enu}" />
        </x:jscookMenu>
and the Bean returns a List or Array of Navigation Items

public List<NavigationMenuItem> getMenu() {
List<NavigationMenuItem> menu = new ArrayList<NavigationMenuItem>();
menu.add(new NavigationMenuItem("bla", "action", null,false));
return menu;
}

Stefan Gesigora wrote:
> Hello folks!
> 
> I've got some problems using JSF RI + myfaces extensions with the
> component JSCookMenu. I've tried several settings but it didn't work!
> Could anyone give me a description how to implement the JSCookMenu in
> the right way? 
> 
> Thanks a lot
> 
> Stefan Gesigora
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE

iD8DBQFDDDlFkg7OsoSBexYRApGKAJ497WIJo7mh19vosjsJrnuU1ctMlwCfR8hr
woD3Gb2qdH6MFX56E3gr9RQ=
=jKlK
-----END PGP SIGNATURE-----

Reply via email to