0 Replies Latest reply on Mar 30, 2009 5:07 AM by nashwa

    How to disable richfaces calender by javascript?

    nashwa

      Hi All,
      I have a richfaces calender <rich:calender > and i want to make it disabled in certain condition ?

      i tried to make it disable by
      $('mainForm:calenderVar').disabled = true;[/u] but it make it opens but the links appears as disabled but the links works .

      also i tried $('mainForm:calenderVar').component.params.disabled = true but it doesn't work.

      also i can accept any suggestion to make it rendered = false or read only by Javascript

      please i need it for urgent task .
      Thanks inadvance for any help.