Menu - Possible to have submenu clickable?
-
- Posts: 20
- Joined: 17 Sep 2010, 16:44
I have a static menu and I want the p:submenu to be clickable just like the p:menuitem. Is this possible?
-
- Posts: 51
- Joined: 06 Sep 2010, 23:01
- Location: São Paulo - Brazil
try this:
Hope it helps you.
Code: Select all
<p:submenu label="Home">
<f:facet name="label">
<p:menuitem value="Home" url="home.xhtml" />
</f:facet>
</p:submenu>
Mojarra 2.0.2 (FCS b10)
GlassFish 3.0.1
PrimeFaces 2.2.1
GlassFish 3.0.1
PrimeFaces 2.2.1
Unfortunately the following code:
only seems to work in 2.2.x not in 3 M4
Is there any work-around to acheive clickable top menus in version 3 ?
Code: Select all
<p:submenu label="Home">
<f:facet name="label">
<p:menuitem value="Home" url="home.xhtml" />
</f:facet>
</p:submenu>
Is there any work-around to acheive clickable top menus in version 3 ?
Tech profile:
glassfish-3.1.2.2
Mojarra 2.1.6
Primefaces 3.4
glassfish-3.1.2.2
Mojarra 2.1.6
Primefaces 3.4
-
- Posts: 2
- Joined: 15 Oct 2011, 17:24
I would just like to second the desire to have submenus be clickable. Many websites use this kind of default feature for their tabs. Thanks.
BTW - PrimeFaces 3M4 is AWESOME!
BTW - PrimeFaces 3M4 is AWESOME!
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 46 guests