-----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