-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDI: Allow listing to PhaseEvents via @Observes #1443
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Easy implemented prototype here: tandraschko/myfaces@63a3fe8 please review @BalusC @arjantijms @pizzi80 @melloware |
This looks good I have used my own custom one for years! |
Oh cool. Let's do it for 5.0. I like you took the opportunity to finally turn the PhaseId into an enum. |
done in myfaces: apache/myfaces@c30922c |
i really like how easy those both CDI enhancements was to implement and its a great benefit for users |
@tandraschko how about ANY_PHASE and the firing order relative to existing phase listeners? Is the behavior as documented in https://github.com/jakartaee/faces/pull/1965/files and as asserted by this integration test acceptable/intuitive? https://github.com/jakartaee/faces/pull/1966/files#diff-6df6ff3e53a0b081d16b1becf2816939412c977ce2d9e20d1b93e35524933255R38 |
The order is a good question; i didnt care about it and just registered it in the jsf-impl faces-config.xml |
DeltaSpike has a way to catch PhaseEvents via
@Observes
:https://deltaspike.apache.org/documentation/jsf.html#Eventbroadcasting
See AfterPhase / BeforePhase
It would be great to have this, however this requires that PhaseId values are Enums.
Example:
The text was updated successfully, but these errors were encountered: