Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Components/Renderers
    • Labels:
      None

      Description

      Originally created on https://issues.apache.org/jira/browse/MYFACES-3185 by Carsten Dimmek:

      Registering a system event listener in the faces-config need a concrete class like HtmlInputText. If you wan't to register a listener for let's say all UIInputs you need to explicit configure all subclasses.

      <system-event-listener>
      <system-event-listener-class>view.RequiredValidationListener</system-event-listener-class>
      <system-event-class>javax.faces.event.PostValidateEvent</system-event-class>
      <source-class>javax.faces.component.html.HtmlInputText</source-class>
      </system-event-listener>

      <system-event-listener>
      <system-event-listener-class>view.RequiredValidationListener</system-event-listener-class>
      <system-event-class>javax.faces.event.PostValidateEvent</system-event-class>
      <source-class>javax.faces.component.html.HtmlInputSecret</source-class>
      </system-event-listener>

      etc.

      Supporting base classes would be great:

      <system-event-listener>
      <system-event-listener-class>view.RequiredValidationListener</system-event-listener-class>
      <system-event-class>javax.faces.event.PostValidateEvent</system-event-class>
      <source-class>javax.faces.component.UIInput</source-class>
      </system-event-listener>

      a fine-grained configuration would be still possible through SystemEventListener.isListenerForSource(Object source)

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            lu4242
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: