ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Create a dynamic menu with DB data retrieved

MagicPlayer
1 Feb 2012 08:01:37 GMT
1 Feb 2012 08:01:37 GMT

Hi All,

I am a newbie of using ZK. I am using ZK 5.0.9 to develop a web application.

In this application, I need to have a menu bar at the top of the interface. The menu item shown to different users base on the access right. Therefore, I need to made a dynamic menu for this.

I have successfully created a tree with the information I retrieved in Java, but not able to made a menu with the ZK API. I also tried to create this with data binding, and there is no use.

Is there any method to create such menu with ZK5 ? Please help to provide some sample code for reference and learning, if possible.