The ApplicationImpl's getProjectStage() would immediately return "ProjectStage.DesignTime", if Beans.isDesignTime() is true.
-Matthias On Thu, Jan 20, 2011 at 1:00 PM, Matthias Wessendorf <mat...@apache.org> wrote: > Hi, > > opening a ADF/Trinidad application in JDeveloper's I am seeing a > "warning" like this: > > WARNING: Your environment is configured as production and Apache > Trinidad is running with debug javascript. See the > "org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT" parameter in > /WEB-INF/web.xml > > The WARNING itself is fine, since the web.xml doesn't have any > ProjectStage setting, but it contains a flag to not obfuscate our > JavaScript (to make it readable)... > > However, in DT (DesignTime) mode this can be pretty annoying.. > Therefore I was wondering if the standard ProjectStage ([1]) should > contain a "DesingTime" value? > In a similar fashion like the java.beans.Beans class does have a > isDesignTime() method ([2]). > > Not sure if that has been already discussed when specifying the new > ProjectStage contract. > > Greetings, > Matthias > > [1] > http://myfaces.apache.org/core20/myfaces-api/xref/javax/faces/application/ProjectStage.html > [2] > http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/beans/src/main/java/java/beans/Beans.java > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf