Yes you are right. The error methods are final on FormComponent not in 
AbstractValidator.

Thanks Frank,
     Erik.


Frank Bille schreef:
> On 10/17/06, *Erik van Oosten* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     > A more easy sollution is to, in your test, subclass your
>     validator and
>     > override error() in that and check if that is invoked correctly.
>     >
>     This is not possible as all the error methods are final.
>
>
> Hmm are you sure of that?
>
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error(wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map)
>  
> <http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error%28wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map%29>
>
> shows that at least the error method you are using is not final. (In 
> fact are all the error methods in abstract validator not final)
>
> Frank
-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-------------------------------------------------------------------------
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