[ https://issues.apache.org/jira/browse/MYFACES-4572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko resolved MYFACES-4572. ---------------------------------------- Assignee: Volodymyr Siedlecki (was: Werner Punz) Resolution: Fixed > faces.getProjectStage() does not return Production > -------------------------------------------------- > > Key: MYFACES-4572 > URL: https://issues.apache.org/jira/browse/MYFACES-4572 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 4.0.0-RC5 > Reporter: Volodymyr Siedlecki > Assignee: Volodymyr Siedlecki > Priority: Major > Fix For: 4.0.0-RC6 > > > 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: > {code:java} > <div id="stage"/> > > <script type="text/javascript"> > var stage = document.getElementById("stage"); > stage.innerHTML = faces.getProjectStage(); > </script>{code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)