2 Replies Latest reply on Apr 27, 2011 10:46 AM by J Miller

    Rich Calendar Example Not Working For Me

    J Miller Newbie

      I'm trying to use the rich:calendar, and I'm having some trouble.  I'm trying to use the functionality that disables certain dates.  Here's the javascript portion of my code:

       

       

      var startDate = new Date();

      startDate = day.date.getDate;

      function disablementFunction(day){              
          if (startDate.getTime() - day.date.getTime() < 0) return true; else return false; 
      }

       

       

      This is the same code as what's in the example (link below), but when I try to access the web page, it says

      Error Traced[line: 34] The content of elements must consist of well-formed character data or markup.

       

      and it's pointiung to the if-statement in my javascript.  I'm calling this function usign the isDayEnabled property of my calendar tag.  Does anybody see something I'm missing?

       

      Example:

      http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf?tab=clientSideCustomization&cid=266684