Order of submenus and menu items in Programmatic menu

UI Components for JSF
Post Reply
icordoba
Posts: 67
Joined: 20 Nov 2010, 19:20

16 Jun 2011, 22:36

Hello,
I'm creating a programmatic menu using DefaultMenuModel class. In the menu I add both menu items with model.addMenuItem( ); and submenus with model.addSubmenu( );

The problem is that submenus always are rendered first (at the top) of the menu, even though I am adding them after the menu items. Can I make them appear in the order they are added or at least bellow menu items?

I am using primefaces 2.2.1

thanks,
Ignacio

icordoba
Posts: 67
Joined: 20 Nov 2010, 19:20

24 Nov 2011, 13:04

Hello,
I've just check 3.0M4 and it also has the problem (submenus are shown before menus and so do not follow order they are added to the menu). Maybe somebody has figured out a workaround?

Thanks,
Ignacio

hipdragon
Posts: 34
Joined: 23 Sep 2010, 02:47

14 Jan 2012, 00:34

I was looking for the answer for this and haven't found anything. It still applies to PrimeFaces 3.0.

It looks like the issue is that the submenu list is called first then the menuitem list is called. This looks like it requires a change to the way the menumodel works. Is this a planned change down the road?

Thanks


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests