title: Use value from backing bean in javascript
body: <p>What I want is to use a boolean value from applicationContext.properties (Jboss configuration file) in my javascript.</p>
  
  <p>Currently I use Spring to inject a value configured in applicationContext.properties into my backingbean.
  Then I put an output text in my jsp like this</p>
  
  <pre><code>&lt;h:outputText id="idValue" styleClass="foo" value="" rendered="#{bean.isRendered}"/&gt;
  </code></pre>
  
  <p>In my JavaScript I try following </p>
  
  <pre><code>  jQuery(function(){
       bRedirect = jQuery(".foo").value != undefined;
       ...
  </code></pre>
  
  <p>All this looks so terrible to me, even though it works fine. There must be a smarter way than doing what I do.</p>
  
  <p>Note that I am running JSF1.2 and therefore  must use jQuery instead of $ and also select by unique class (foo) and not by id, which may be bad practice as well.</p>
  
  <p>Thank you in advance. alfons</p>