Hide a Dynamic MENU

UI Components for JSF
Post Reply
rider
Posts: 497
Joined: 05 Mar 2010, 13:17

23 Jun 2010, 16:58

Hello,
I want built this here:
If I click on the menu (the top of a submenu), => the submenu will hide.
If I click a second time on the top of a submenu => the submenu will show.

How can I create this?

Another question is:
whats the different between the static and the dynamic menu?
Primefaces 12.0, WildFly 21

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Jun 2010, 20:36

you can use widgetVar.hide() or widgetVar.show();

Regarding difference between static and dynamic menu, menu section at user's guide explains that.

rider
Posts: 497
Joined: 05 Mar 2010, 13:17

25 Jun 2010, 08:37

Sorry, I don´t understand it:

<p:menu model="#{menuBean.model}" />

Which is the attribute that I should use?
Can you show me the code please.
Primefaces 12.0, WildFly 21

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests