Jochen,

Thanks for the explanation.

Best regards,
Behi

On 12/17/06, Böhringer Jochen <[EMAIL PROTECTED]> wrote:
With the ActionListener functionality you can attach more than one action 
method to the same event. All of them are executed before the action method is 
called. So you can put functionality often needed in scope of different actions 
in an action listener. This action listener can then be combined with different 
action methods.
The actionListener attribute of several components is a shortcut if you only 
want to attach one actionListener to a component.

Regards
Jochen


-----Original Message-----
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
Sent: Friday, December 15, 2006 11:26 AM
To: MyFaces Discussion
Subject: Setting both action and actionListener attributes

Hi,

I see here and there code snippets in which both of the action and
actionListener attributes of a commandLink is set. What could be the
reason behind this? Isn't actionListener supposed to perform an action
and redisplay the current page, and an action to navigate to another
arbitrary page?

Regards,
Behi

--
"Science is a differential equation. Religion is a boundary condition"
- Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa



--
"Science is a differential equation. Religion is a boundary condition"
- Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa

Reply via email to