MyFaces Core
  1. MyFaces Core
  2. MYFACES-2545

ProjectStage can be set via System Property and ProjectStage!=Production should create a log entry


    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta-2
    • Fix Version/s: 2.0.0-beta-2
    • Component/s: JSR-314
    • Labels:


      Copied from the mail from Ed Burns:


      This will not go in the spec, but I propose that existing JSF
      implementation coordinate and implement the following behavior.

      We introduce a System Property


      Rationale for using this name: the context-param for this property is
      "javax.faces.PROJECT_STAGE". I chose not to use the "javax." prefix
      because doing so would be in poor taste. The "javax." prefix is
      intended for things in the specification proper.

      The valid values of this property are exactly as specified in section
      11.1.3. If the System Property is not one of the valid values, the
      other sources for a value for this property are consulted.

      The implementation will interpret this property as an override for all
      other ways of setting the Application.getProjectStage() property.

      In addition to the preceding proposal, the implementation will print out
      a very prominent log message such as:


          • WARNING: JavaServer Faces is running in DEVELOPMENT mode. ***
          • ^^^^^^^^^^^ ***
          • Do NOT deploy to your live server(s) without changing this. ***
          • See Application#getProjectStage() for more information. ***

        Issue Links


          Jakob Korherr created issue -
          Jakob Korherr made changes -
          Field Original Value New Value
          Link This issue is related to MYFACES-2235 [ MYFACES-2235 ]
          Jakob Korherr made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0.0-beta-2 [ 12314539 ]
          Resolution Fixed [ 1 ]
          Leonardo Uribe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]


            • Assignee:
              Jakob Korherr
              Jakob Korherr
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: