2 Replies Latest reply on Jun 22, 2009 7:46 AM by pmsudha

    the seam javascript object

      How to check whether all fields are not empty in xhtml?
      Should I use the seam javascript object? if so, How to do?


      Before persist, I've to check that all fields of the form are not empty. Please help.


      Please do the helpful by giving sample code..

        • 1. Re: the seam javascript object
          clerum

          Your going to want to run through a simple JSF tutorial before you get any deeper into seam.


          Something like <h:inputText value="#{user.name}" required="true" /> will work.


          JSF will validate that the field has been filled in via the required=true and you will need to add a messages component to the page do display the errors.


          • 2. Re: the seam javascript object

            Thank You.. If I want to display alert box means, How to do?