Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4572

faces.getProjectStage() does not return Production

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-RC5
    • 4.0.0
    • None
    • None

    Description

      Discovered via  TCK Issue2969IT on RC5 with the new scripts.

      The faces.getProjectStage() call returns an empty string for the Production project stage.  When set to Development, it works as expected.

      My guess it is doesn't see a stage query parameter set in the script tag src attribute, so it defaults to an empty string.

      Facelet:
      https://github.com/jakartaee/faces/blob/309ddc0a060846d28395e963d69bdb080025b845/tck/faces22/ajax/src/main/webapp/ajaxProjectStage.xhtml#L35-L38

      Test:
      https://github.com/jakartaee/faces/blob/309ddc0a060846d28395e963d69bdb080025b845/tck/faces22/ajax/src/test/java/ee/jakarta/tck/faces/test/servlet30/ajax_selenium/Issue2969IT.java#L34
       
      Code:

      <div id="stage"/>
                   
      <script type="text/javascript">        
         var stage = document.getElementById("stage");        
         stage.innerHTML = faces.getProjectStage();
      </script>

       

      Attachments

        Issue Links

          Activity

            People

              volosied Volodymyr Siedlecki
              volosied Volodymyr Siedlecki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: