Meaningless Drivel is fun!*
The moose likes JSF and the fly likes JSF ActionEvent processAction duplication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF ActionEvent processAction duplication" Watch "JSF ActionEvent processAction duplication" New topic
Author

JSF ActionEvent processAction duplication

Piter Smith
Ranch Hand

Joined: Feb 25, 2009
Posts: 31
For the forward and back links I want to use ActionListener even if it's not quite correct to do so, just so I can understand how to use this class. The two listeners are basically identical, except for the boolean value. How can have make just one listener? Presumably the ActionEvent object has sufficient information to determine that?

messages.html:



and the action, which is duplicated by a ForwardListener which just sends a different value for the boolean:

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

"THUFIR HAWAT",

We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .

A little incentive: The sooner you correct your display name, the sooner you get an answer.


Customer surveys are for companies who didn't pay proper attention to begin with.
Piter Smith
Ranch Hand

Joined: Feb 25, 2009
Posts: 31
Tim Holloway wrote:"THUFIR HAWAT",

We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .

A little incentive: The sooner you correct your display name, the sooner you get an answer.



Ok, name corrected.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

Piter Smith wrote:
Tim Holloway wrote:"THUFIR HAWAT",

We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .

A little incentive: The sooner you correct your display name, the sooner you get an answer.



Ok, name corrected.


Sure you didn't mean "Piter DeVries"?
Piter Smith
Ranch Hand

Joined: Feb 25, 2009
Posts: 31
Tim Holloway wrote:
Piter Smith wrote:
Ok, name corrected.

Sure you didn't mean "Piter DeVries"?


Well, the name was approved. Oh well, what sort of reply do you want here?
 
Consider Paul's rocket mass heater.
 
subject: JSF ActionEvent processAction duplication
 
Similar Threads
commandLink in table -> javax.servlet.ServletException: Can't find bundle
Component ID frm1_window viewid has already been found in the view
JEE example with EJB, JSF is not working
DataTable datas are not actual
JSF form problems