Re: Injection fails in rewrite processor. Injected components are always null

Splash Forums PrettyFaces Users Injection fails in rewrite processor. Injected components are always null Re: Injection fails in rewrite processor. Injected components are always null

#22221

The problem is that PrettyFaces creates an instance of the rewrite processor itself. So CDI isn’t involved here. Therefore @Inject won’t have any effect. Your only option is to manually obtain the BeanManager and lookup the service for yourself. I did something similar in the past and created a simple helper class for this. Unfortunately I currently don’t have access to the code. But I will post it later today as soon as I’m in the office.