Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Q: how to do menu bar with multi-level drop down menu in JSF?

843842Jun 18 2004 — edited Jun 18 2004
Hi,

I only recently start reading JSF. My application need a multi-level drop-down menu bar pretty much like most windows app, e.g.

File Edit Options
- Open - Copy - Format Symbol -> Lines
- Close - Cut Rectangles
- Exit - Paste ...
----------- ...
- Search
- Replace

Say, on the menu bar, there are 3 main menu options: File, Edit, and Tools
1) when each top-level menu is selected, a drop-down menu is displayed with multiple entries for
selection
2) to bettr organize menu entries, sometimes a divider need to be used, e.g. between Paste and Search
in the Edit menu
3) menu entry may be disabled under certain condition, e.g. if nothing is copied or cut, then Paste should
be disabled
4) some menu entry when selected will display another drop down submenu.
e.g. when Tools -> Format Symbol is selected, a drop-down submenu is displayed next to the Format
Symbol to allow user to choose between Lines, Rectangles, etc.

Is there any built-in JSF component/renderer support any/all of these features?
If not, any open-source/commercial component/renderer available to do these?
If not, how can I build one myself?

Other more advanced features in mind are:
- checkbox/radio button associated with menu entry,
- context sensitive menu
- etc.

Thanks in advance

chuck
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2004
Added on Jun 18 2004
2 comments
209 views