menu -> dynamic from bean?

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
vished
Posts: 479
Joined: 02 Feb 2014, 17:38

27 Sep 2021, 19:17

Hi,

currently we have the static menu:

Code: Select all

		<pv:menu>

							<p:menuitem value="HOME" icon="fa fa-home"
								outcome="/public/startPage" />

							<p:submenu label="MENU1" icon="fa fa-film">
								<p:menuitem value="PAGE1"
										outcome="/public/page1" />
							</p:submenu>


						</pv:menu>
How can I do this dynamic?
I would like to have the several
<p:menuitem value="PAGE1"outcome="/public/page1" />
which are coming from a menu from my bean.


How is this possible?
PF 8.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

29 Sep 2021, 11:13

Hi,

You can create it like in https://www.primefaces.org/showcase/ui/menu/menu.xhtml (Programmatic section)

Similar issue; viewtopic.php?f=138&t=64583

Best Regards,

Post Reply

Return to “Verona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests