yes you are right, it was a bug. onError() was added long after the validating behavior was created and i didnt think about it. thanks for catching it. its in svn wicket-1.x right now if you want to check that out and will be in 1.2.3

-Igor


On 9/1/06, Adam Smyczek <[EMAIL PROTECTED]> wrote:
Yes, you are right, I could add the feedback panel to overridden
onError() method of AjaxSubmitButton,
but my code cannot use it (have some custom submit logic).
I use AjaxFormValidatingBehavior, so for now I subclass it and
override onError().
Additionally I have to implement addToAllFormComponents() to use my
overridden class.
This is of cause not a problem.

The question is, why does AjaxFormValidatingBehavior not override
onError() automatically and update the panels same as onSubmit() does?
Does the ajax validation framework have some restrictions regarding
error
handling I am not aware of, or can this method be added to
AjaxFormValidatingBehavior, just for convenience?

Thanks,
Adam



On Sep 1, 2006, at 10:38 AM, Eelco Hillenius wrote:

> You can override onError to react on a failing validation. Updating of
> the feedbackpanel should be automatic, as long as you add the
> feedbackpanel to the ajax target for re-rendering.
>
>   protected void onError(AjaxRequestTarget target) {
>     target.add(myFeedbackPanel);
>   }
>
>
> Eelco
>
>
>
> On 9/1/06, Adam Smyczek <[EMAIL PROTECTED]> wrote:
>> AjaxFormValidatingBehavior updates feedback panels in onSubmit()
>> method, but onError() nothing happens.
>> Can onError() be overwritten as well and do the same thing?
>>
>> Regards,
>> Adam
>>
>>
>>
>> ---------------------------------------------------------------------
>> ----
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?
>> cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to