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

    How to use richfaces with javascript

    clout

      Hi

       

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

       

      <script>

      function CheckForm(){

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

                     alert("please reset it !");  

            }

      }

      </script>

       

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

       

      How could I do?