0

In a button I can see three properties action, actionListener & actionListeners. I tried to use the actionListener property by creating a class implementing java.awt.event.ActionListener and implementing actionPerformed method and then calling the class using expression language. But nothing happened.

Even the documentation on these properties is cryptic. Can anyone explain how these properties are used and their purpose?

Naveen
  • 6,786
  • 10
  • 37
  • 85
  • See if JSF documentation on this can help. See for instance this answer: http://stackoverflow.com/questions/3909267/differences-between-action-and-actionlistener – Per Henrik Lausten May 27 '13 at 15:50
  • 2
    You can't mix java.awt with that. AWT (abstract window toolkit) is for GUI components in Java (standalone) application only. – Frantisek Kossuth May 27 '13 at 18:15

1 Answers1

0

I think you need to use "javax.faces.event.actionlistener" and it uses processAction method. I assume you know though that xpages uses xp:eventHandler's instead of the vanilla JSF 1.1 attributes you mentioned.

Toby Samples
  • 2,168
  • 14
  • 15