Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
There is a small bug on myfaces builder plugin. This method:
public void addListener(ListenerMeta prop)
{ _listeners.put(prop.getClassName(), prop); }uses the class name as a key, but the expected behavior is use the name as key. For example, if we have something like this:
@JSFListener(event="javax.faces.event.ActionEvent",
phases="Invoke Application, Apply Request Values")
public ActionListener[] getActionListeners()
Right now the key used is javax.faces.event.ActionListener, but it should be used "actionListener". This change does not cause any side effects, because this tag is only used for documentation purposes and in practice there is no template calling:
public ListenerMeta getListener(String name)