If your form has an AjaxFormSubmitBehavior you don't need AjaxButtons to
submit it, regular buttons are sufficient (they don't even have to be
controlled by wicket). If you'd like to add an additional Ajaxbutton that
does its own stuff (i.e. you don't want it to submit the form) you can
setDefaultFormProcessing to false

hope that helps

Michael

Thies Edeling wrote:
> 
> Hi all,
> 
> I have a Form which gets submitted by an AjaxButton. Validation of the 
> FormComponents is triggered by AjaxFormValidationBehavior.
> Both add an AjaxFormSubmitBehavior to the form which bite eachother a 
> bit. When the form is submitted by the AjaxButton the
> AjaxFormValidationBehavior is invoked as well, trying to add the 
> FeedbackPanels to the AjaxRequestTarget. This fails because the
> form is already replaced on the clientside by the AjaxButton and I end 
> up with a javascript error.
> 
> I fixed it by manually triggering the validation from an 
> AjaxFormComponentUpdatingBehavior but I thought using a 
> AjaxFormValidationBehavior and an AjaxButton together is common practice?
> 
> gr
> Thies
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Multiple-AjaxFormSubmitBehavior%27s-on-the-same-form-tp15076042p15083091.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to