7 Replies Latest reply on Jan 31, 2011 1:03 AM by Lee Clout

    How to use richfaces with javascript

    Lee Clout Newbie



      I would like write javascript in richfaces page, but is syntax different to write javascript in html?



      function CheckForm(){

           if(document.form.text1.value.length ==0 && document.form.text2.value.length ==0){

                     alert("please reset it !");  





      this code in html could run, but couldn't run in richfaces page


      How could I do?