Dynamic nested submenu's

Post Reply
ssmalisetty
Posts: 8
Joined: 06 Jun 2016, 09:44

27 Feb 2017, 02:37

Hi,

I am trying to add a submenu to a submenu in a dynamic menu model.
Code seems to work but the nested menu is not collapsing.

Below is the code:

Code: Select all

DefaultSubMenu submenu1 = new DefaultSubMenu("Submenu 1");
DefaultSubMenu submenu2 = new DefaultSubMenu("Submenu 2");
DefaultMenuItem item = new DefaultMenuItem("Menu Item 1");
submenu2.addElement(item);
submenu1.addElement(submenu2);
model.addElement(submenu1);
Items in submenu 2 is collapsing. but the submenu 1 itself is not collapsing.

Appreciate your help!

I am using
PF 6.0.12

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest