[weld-dev] @Inject FacesContext

Dan Allen dan.j.allen at gmail.com
Tue Nov 10 17:32:28 EST 2009


On Tue, Nov 10, 2009 at 5:30 PM, Gavin King <gavin.king at gmail.com> wrote:

>  class FacesContextProducer {
>     @Produces @RequestScoped FacesContext getFacesContext() {
>         return FacesContext.getCurrentInstance();
>      }
>  }
>

How familiar that looks. I just wrote that code today. While it's true we
can provide this portable extension, it's a portable extension many of us (I
can't say all of us) are going to need.

-Dan

-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091110/14350440/attachment.html 


More information about the weld-dev mailing list