posted 13 years ago
Menus are not usually implemented this way. What you're proposing is more like a datatable with commandLinks in it than it is an actual menu. Also, you haven't defined a container for the menuitems.
A datatable "menu" is easy. When you click on one of the commandlink objects (menu items), it fires a backing bean method which can then query the tables's datamodel to determine which item was selected.
True menuitems also have action methods, but they ordinarily have a unique method for each menuitem.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer