1 Reply Latest reply on Dec 5, 2008 9:20 PM by lcbdl888

    Using JavaScript to operate UIObject

    lcbdl888

      I saw somebody using this code to operate a richFaces object. But how to referenc JSF object, like h:inputText?


      "#{rich:component('dob')}.getCurrentDate()"



      Where is the document of rich:component?


      Thanks

        • 1. Re: Using JavaScript to operate UIObject
          lcbdl888

          I realized that jQuery is one of the solutions.


          onchanged="jQuery('input[@id*=:age]').attr('value', 
                             calcAge(#{rich:component('dob')}.getCurrentDate()))"
          



          I don't know if this is the best way.