3 Replies Latest reply on Jul 1, 2008 4:03 PM by Justin S.

    Testing for development version in JSF?

    Justin S. Newbie

      I was wondering if anyone was aware of a way to check for whether the facelets.DEVELOPMENT has been set to true or false in web.xml? I'd like to use this as a cue to determine whether to use the minified versions of the ExtJS library or not. So for instance something like the following would be ideal:


      <h:outputText rendered="#{facelets.DEVELOPMENT">
      <script type="text/javascript" src="/js/ext-all-debug.js"</script>
      </h:outputText>
      
      <h:outputText rendered="#{!facelets.DEVELOPMENT">
      <script type="text/javascript" src="/js/ext-all.js"</script>
      </h:outputText>



      Any thoughts or suggestions?