Solved

Rich menu: do an action

Posted on 2009-07-02
5
286 Views
Last Modified: 2013-11-24
Can we execute an action in our bean when we click on a menuItem?

What must we put into it to realize this?
0
Comment
Question by:Nargzul
  • 3
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 24767869
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24767880
You can also add an ActionListener to the item, but the above is preferred
0
 
LVL 1

Accepted Solution

by:
Nargzul earned 0 total points
ID: 24768015
I've found simplier: I've put a commandLink into it, and set the action to this action.
0
 
LVL 92

Expert Comment

by:objects
ID: 24768604
> I've found simplier: I've put a commandLink into it, and set the action to this action.

Thats the *only* way to do it :)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24770504
Sorry - didn't notice it was JSF question
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now