Hi Michael,
Answers inline
Regards,
Manfred
On 10/6/14, 3:08 PM, Michael Müller wrote:
> Hi Manfred,
>
> I assume this shall work with any other context too? I'm thinking
> especial of a custom defined context.
Injection would work into any CDI managed bean within the limits set by
the CDI specification.
> And thinking of @SessionScoped or beans with a longer lifecycle:
> During a session I might call a non-Faces Servlet, for example an
> upload bean (although JSF offers upload, I prefer a JavaScript
> controlled upload by XMLHttpRequest or iFrame to show a progress bar,
> cancel button, and more). And I need to access some other backing
> beans. It would be much easier to perform such an access if it would
> be possible to inject a FacesContext in such a Servlet. Although there
> is no call to the Faces Servlet, I guess it would be possible to
> inject the same context as available for a @SessionScoped bean.
Unfortunately it actually would not as the non-Faces servlet does not
setup the FacesContext.
> Herzliche Grüße - Best Regards,
>
> Michael Müller
>
> Web Development with Java and JSF: https://leanpub.com/jsf
> Am 06.10.2014 17:10, schrieb manfred riem: