Hi,
that was my mistake. I set to submit button defaultFormProcessing = false
and that is why validation haven't been processed.
Now validations are processed but I'm getting this warning:
Component-targetted feedback message was left unrendered. This could be
because you are missing a FeedbackPanel on the page.
And no validation message is displayed.
But when I use non ajax based submit then message are shown correctly.
piece of code...
IndicatingAjaxButton orderSubmit = new IndicatingAjaxButton("order-submit",
orderForm) {
private static final long serialVersionUID =
-3779837727856697099L;
/** {...@inheritdoc} */
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form)
{
//some bussines logic here
}
};
2009/2/19 Matt Welch <[email protected]>
>
> I think more information is needed before someone can provide a useful
> response:
>
>
> Are you initializing the AjaxButton with the form (in the the constructor
> of
> the AjaxButton or with setter)?
> Is the form data being submitted? If not, this would indicate a problem
> somewhere other than in the validation itself.
> Can you show your actual code?
>
>
>
>
> Vitek.Tajzich wrote:
> >
> > Hi guys,
> >
> > I have form and AjaxButton as submit button for the form. If I use non
> > ajax
> > button validation is called and input fields are validated. But If I use
> > AjaxButton then validation are passed....What should I do to get form
> > validated even If I use ajax button?
> >
> > thank you,
> >
> > Vitek
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>