JSF 2.3 @Inject FacesContext

Starting from the new 2.3 SNAPSHOT builds you can now do:


    @Inject FacesContext facesContext;
        

Note you will need to make sure you use the latest 2.3 SNAPSHOT build available from https://maven.java.net/content/repositories/snapshots/org/glassfish/javax.faces/ and that you include a faces-config.xml that states version 2.3.

Let me know what you think of this!

Posted October 10, 2014

Up