jakartaee / jakartaee/faces

Support base classes as source class for SystemEvents

Open
#1,022 4 comments 0 reactions 0 assignees View on GitHub
Component: Components/Renderers Priority: Minor Type: Improvement
Dominant language
Java
Stars
127
Forks
59
Avg merge
23h
Merged PRs (30d)
7

Description

Originally created on [https://issues.apache.org/jira/browse/MYFACES-3185](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.
```

view.RequiredValidationListener
javax.faces.event.PostValidateEvent
javax.faces.component.html.HtmlInputText

view.RequiredValidationListener
javax.faces.event.PostValidateEvent
javax.faces.component.html.HtmlInputSecret

```
etc.

Supporting base classes would be great:
```

view.RequiredValidationListener
javax.faces.event.PostValidateEvent
javax.faces.component.UIInput

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

Contributor guide

Open the contributing guide

Research direction

Start by tracing how faces-config processes the source-class in system-event-listener entries and review SystemEventListener.isListenerForSource(Object source). The issue names no files or tests. Done means a base class such as UIInput can cover its subclasses while listener-level source filtering remains possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.