Xpage: ActionListener doesn't work?

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.

Subject: I got it the actionListener working

The issue is in the XPage markup.

The <button tag allows with no compile error a actionListener=“#{appBean.processAction}”…

You need to put the actionListener attribute in the <xp:EventHandler instead.

I got a console out.

Subject: I want to know the answer too.

Some help or insight are welcome.