Solved

Rich menu: do an action

Posted on 2009-07-02
5
290 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

733 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