-
1. Re: Skipping validation for ajax requests
ilya_shaikovsky May 13, 2009 5:19 AM (in response to straubp)use ajaxSingle attribute of support.
-
2. Re: Skipping validation for ajax requests
straubp May 13, 2009 6:26 AM (in response to straubp)Thank you, I will try this.
But I think there will still be a problem:
Let's say I fill the required city field with "New York". I would get get suggestions for locations in this city. Now I delete the city field because I want to get suggestions for any city. I think this could fail because city is required and I send an empty field. -
3. Re: Skipping validation for ajax requests
ilya_shaikovsky May 13, 2009 6:28 AM (in response to straubp)then you could mark suggestion" request as immediate. (ajaxSingle will not be needed in this case)
-
4. Re: Skipping validation for ajax requests
straubp May 13, 2009 7:35 AM (in response to straubp)But then the model backing the fields wouldn't be updated and I couldn't determine what the user typed (for finding suggestions).
-
5. Re: Skipping validation for ajax requests
ilya_shaikovsky May 13, 2009 7:42 AM (in response to straubp)sorry.. sure.. but if you need to update the model and make a choise depending on new value.. seems there is no place for required for this field :)
-
6. Re: Skipping validation for ajax requests
straubp May 13, 2009 8:18 AM (in response to straubp)The suggestion list is just a suggestion list. :-) The user still can fill out the form normaly and klick save to save the location. So for saving I need validation, for updatating the suggestion list I can not have any. Of cause I could put all the validation into the save method, but that doesn't seem very right.