Reputation: 35
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
Upvotes: 0
Views: 2275
Reputation: 8171
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.
Upvotes: 1