Reply To: Rewrite Call to a CDI Bean

Splash Forums Rewrite Users Rewrite Call to a CDI Bean Reply To: Rewrite Call to a CDI Bean

#27310

Hey, thanks for sharing the solution.

If you want to use FacesContext, you will always have to use “PhaseAction”. If you don’t, your code will be executed very early in the request processing lifecycle, even before JSF starts its processing. “PhaseAction” basically just queues your operation and executes it within the faces lifecycle.