1 Reply Latest reply on Dec 12, 2007 3:50 AM by tomba

    Ignoring validation, when submitting ajax request using a4j:

      Hi,

      I am using a4j: support to submit the ajax request, when users select a check box on the form. Based on that selection, I show/hide certain controls on the form (using rendered & reRender properties on the control)

      Is it possible to avoid JSF validations, when I am submitting the form using a4j:support ? All I am interested in is updating model values & running action at this point. Remaining Form validation should be done, when OK button is clicked on the form.

      Any Suggestions ?

      Thanks, Chetan

        • 1. Re: Ignoring validation, when submitting ajax request using
          tomba

          Hi,

          you can set the immediate property to true on your changeable field and register a valueChangeListener or something.
          If you then create a binding on the fields that should be displayed/hidden you could change the rendered property in your listener method after which you can move on to rendering your page.

          I hope it's clear...