1 Reply Latest reply on May 13, 2009 5:08 AM by Ilya Shaikovsky

    Skipping validation for ajax requests

    Philipp Straub Newbie

      Hi all,

      I have a form with some fields for entering a location (name, street, zip, ...) and a button to save it.

      Next to the form I want to show a list of suggested locations based on the text in the fileds as the user enters it.

      I use <a4j:support event="onkeyup" reRender="suggestions"/> in all input fields for this.

      For saving the location (using the save button) some of the fields are required and may also have some validators on them.

      With this, updating the suggestion list isn't wotking any more. That's because validation fails and the model isn't updated.

      Is there a way to do what I want to do? Maybe by skipping validation somehow, or copy the fileds by JS into a hidden form, which doesn't have any validators on them (But how would I do that?)?

      Thanks for your help

      Phil