[JAVASERVERFACES_SPEC_PUBLIC-1022] Support base classes as source class for SystemEvents Created: 05/Jul/11  Updated: 12/Aug/14

Status: Open
Project: javaserverfaces-spec-public
Component/s: Components/Renderers
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: lu4242 Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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)



 Comments   
Comment by Ed Burns [ 01/Aug/14 ]

Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

Generated at Mon Apr 24 09:18:15 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.