title: Set project stage for JavaServer Faces with JNDI configuration/lookup in Glassfish v3
body: <p>I'm trying to set the project stage for JavaServer Faces in a GlassFish application server v3 with a JNDI property.</p>
  
  <p>I set the stage property to <strong>Development</strong> stage, but my application received always the <strong>Production</strong> stage. </p>
  
  <p><img src="https://i.stack.imgur.com/fjkyB.png" alt="enter image description here"></p>
  
  <p>I use GlassFish Server Open Source Edition 3.1 (build 43) on a windows system.  </p>
  
  <p>For rendering the project stage in the JSF page I use this:</p>
  
  <pre><code>&lt;h:outputText value="Stage:#{facesContext.application.projectStage}"/&gt;
  </code></pre>
  
  <p>Is anything else necessary to use the project stage in an application? The application has no web.xml file. </p>