File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Printing the dynamic menu item selected in an alert Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Printing the dynamic menu item selected in an alert" Watch "Printing the dynamic menu item selected in an alert" New topic
Author

Printing the dynamic menu item selected in an alert

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 109

Hi All,
In the below code i have a list of menus, i want to display in an alert , for the corresponding menu item selected from the menu list.
How can i print the dynamic value selected , because later i need to pass the selected value to my backing bean?



Regards,
Amarshi


SCJP (97%), SCWCD (95%))
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

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.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
 
subject: Printing the dynamic menu item selected in an alert
 
Threads others viewed
setting dynamic actions for a selection list?
IE/Firefox javascript html list issue
Regarding html:select kind of URGENT
Script using array
Regarding jstl issue
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com