Hi,
how is it possible to set the active or selected state for a DefaultMenuItem or DefaultSubMenu using a DynamicMenuModel on Rio 3.1.1 / PF 5.3.13?
pr:menu item state
ok MenuItems are no longer a problem. I use
and to make them appear selected.
But what about DefaultSubMenu? I tried but it does not seem to work.
Code: Select all
menuItem.setStyleClass("someCssClass");
Code: Select all
menuItem.setContainerStyleClass("someCssClass");
But what about DefaultSubMenu? I tried
Code: Select all
subMenu.setExpanded(true);
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Pr: menu is a custom primefaces component for layouts. it doesn't support all features of submenu like setExpanded(true);. You need to override MenuRenderer.java and layout.js. I'll give a workaround for this issue to you if I have time.
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests