Yes. Rewrite operates in a ServletFilter, meaning that JSF has not yet begun its lifecycle, thus, the bean does not yet exist because as the exception suggests, the context has not yet been started.
You would need to add a deferred injection in order for this to work. In fact, that’s a feature we need. You’d have to cache the values to be injected, then do the injection in a PhaseListener. We should add this functionality to Rewrite JSF Integration.
Is this something you’d be interested in prototyping?
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.