Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3059

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: build process
    • Labels:
      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)

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              lu4242 Leonardo Uribe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: