thx a lot Timo for ur reply yea i agree that it is meant for submitting....but what i meant was to trigger validation onclick of link....
I am still facing a problem. I am using AjaxLink which already has a an AjaxBehavior on click.....now i tried adding AjaxFormValidatingBehavior on onclick but the AjaxLink is not working properly coz i think the onclick has been replaced. So can u pls tell me how to add multiple ajax behaviors on the same event. Timo Rantalaiho wrote: > > On Wed, 04 Feb 2009, rag...@directi wrote: >> I have a AjaxSubmitLink which i only want to use for some validation on >> some >> fields on the form. I do not want to submit the form if there are NO >> errors >> by clicking this link. I am using AjaxSubmitLink just to trigger >> validations, Incase there are any error they should be shown when i click >> this link but when every thing is fine i do not want the form to be >> submitted, I want the form to be submitted by a seperate button. Can any >> one >> tell me how can i do this. > > Look at the implementation of AjaxSubmitLink. It's an > AbstractSubmitLink with an AjaxFormSubmitBehavior, so the > word "submit" figures there at least three times => it's > definitely meant for submitting ;) > > But attaching AjaxFormValidatingBehavior (instead of > _Submit_Behavior) to a link does probably what you want. > > Best wishes, > Timo > > -- > Timo Rantalaiho > Reaktor Innovations Oy <URL: http://www.ri.fi/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/How-to-stop-submit-of-form-on-AjaxSubmitLink-onSubmit-tp21830759p21846721.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org