ComponentMeta does not add listeners using its name on myfaces-builder-plugin
-----------------------------------------------------------------------------

                 Key: MYFACES-3059
                 URL: https://issues.apache.org/jira/browse/MYFACES-3059
             Project: MyFaces Core
          Issue Type: Bug
          Components: build process
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe
            Priority: Minor


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)


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to