2 Replies Latest reply on Jan 12, 2012 1:59 AM by burberius

    Actions on client side validation errors

    burberius Newbie

      Hi

       

      I started a new project (also my first steps) with RichFaces 4.1. The first part is just a simple login/portal site, with a nice usability created by a designer. While doing the styling I stumbled over two problems, where I couldn't find help in the book nor on the internet.

       

      Is it possible to work with actions if a client side validation error occures?

      My design girl wants two things based on an error:

      • highlight the input field where the error occures and remove the highlighting when the field is OK again
      • disable the submit button and enable again, when everything is fine

       

      The first would be just some styling change when there is a validation error. The other would have to disable the button with javascript, I guess.

       

      Any help would be a appreciated.

       

      Best regards,

           Jens