title: How to access javax.faces.PROJECT_STAGE from the view/inside code?
body: <p>[My Setup: Java EE 6 application, with EJB3.1, CDI/Weld, JSF2 running on Glassfish 3.0.1]</p>
  
  <p>I just read about the Faces ProjectStage on <a href="http://java.dzone.com/news/jsf-20-new-feature-preview-ser" rel="noreferrer">this page</a>, which is a cool thing. So i configured it in my Web.xml, setting it to Development:</p>
  
  <pre><code>&lt;context-param&gt;
    &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;   
    &lt;param-value&gt;Development&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>Now i want to access the ProjectStage from the JSF view (setting the visibility of specific UI components accordingly).</p>
  
  <p>Therefore i already tried things like an outputtext with the value <code>#{javax.application.projectStage}</code>, which seems to be null, and i also tried many other variants, with no success. I even don't manage to access the ProjectStage from within Java code (then i could expose it myself with a Bean). </p>
  
  <p>How can i access the PROJECT_STAGE value inside my application?</p>