• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF ActionEvent processAction duplication

 
Piter Smith
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Piter Smith
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic