title: Primefaces Calendar - disabling specific dates using EL
body: <p>so from my previous question, <a href="https://stackoverflow.com/questions/16559559/disable-specific-dates-on-pcalendar">Disable specific dates on p:calendar</a>, i know that i can disable specific dates using Javascript like this: </p>
  
  <pre><code>  var disabledDays = ["5-15-2013", "6-23-2013"];
    function disableAllTheseDays(date) {
      var m = date.getMonth(), d = date.getDate(), y = date.getFullYear();
      for (i = 0; i &lt; disabledDays.length; i++) {
          if($.inArray((m+1) + '-' + d + '-' + y,disabledDays) != -1) {
              return [false];
          }
      }
      return [true];
  }
  </code></pre>
  
  <p>with:</p>
  
  <pre><code>&lt;p:calendar id="pfdate" navigator="true" pattern="MM-dd-yyyy" 
        value="#{day}" BeforeShowDay="disableAllTheseDays" showOn="button"/&gt;
  </code></pre>
  
  <p><strong>However, my question is that how can i store dates in <code>disabledDays</code> array using EL expressions?</strong> I need to do this because the dates that i need to disable varies. Disabling dates needs to be dynamic. If i can't do this with EL expressions, is there anyways to use an array that will have dynamic data?</p>
  
  <p>Thanks</p>