0

My question is how to dynamically create menu bar from the database according to user credential using JSF 2.0 ? kindly provide me some hints or links which can be of help. Thanks

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
awesum
  • 35
  • 1
  • 1
  • 8

1 Answers1

1

Have you considered using Third party component libraries with JSF.
You could go for Primefaces.
It has a different varieties of Menu Bars here.

Here using p:menu, you can create menu using Menumodel. that model can be changed from ManagedBean based on the user Privileges.
Here is the Primefaces Menu Model Example,where last Programmatic Menu is created using MenuModel.
Here is the Primefaces Blog Link.

Kishor Prakash
  • 8,011
  • 12
  • 61
  • 92
  • By dynamic menu , I mean a particular user should be shown some menu items or in other words he can navigate to some of the pages using menu bar – awesum Nov 08 '13 at 11:26
  • 1
    @BalusC can u provide any help in this regard? – awesum Nov 08 '13 at 11:32
  • See the left correct symbol on the answer? @awesum click that. Accepting answer which helped you, will increase your reputation, too. You have 0% acceptance ratio, so improve it :) – MysticMagicϡ Sep 02 '14 at 05:43