Re: WELD-001303 No active contexts for scope type javax.faces.bean.ViewScoped

Splash Forums Rewrite Users WELD-001303 No active contexts for scope type javax.faces.bean.ViewScoped Re: WELD-001303 No active contexts for scope type javax.faces.bean.ViewScoped

#22191

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?

~Lincoln