Solved

Rich menu: do an action

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
varialbe initialization 11 37
how to install java on RHEL image on EC2 4 39
Android development question 2 53
how to debug htl and js pages 8 38
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

839 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