We have the possibility to use ActionListeners in command component.I’m trying to make a sample of this, but it seem’s that doesn’t work.
First, I create a sample ActionListener like:
package my.package;
public MyListener implements ActionListener {
public MyListener() {
System.out.print("My Listener constructor");
}
public void processAction(ActionEvent event) {
System.out.print("MyListener-Processing event");
}
}
After that, In the xpage properties I add an ActionListener in the “ActionListeners” property with type =“my.package.MyListener”
That doesn’t work.
If I try to put the method in the “ActionListener” within a managedbean, that doesn’t work anymore.
I think it’s a bug. Someone have a workarround please, it’s about one week i’m working on this and i don’t see any issue.