You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jan Ferko <ju...@gmail.com> on 2011/01/19 15:42:25 UTC
IValidator vs IFormValidator
Hi,
I worked on validators for my app and I noticed that IFormValidator is
not subinterface of IValidator, which made some problems in app as we
are using both components which needs IValidators and IFormValidators as
we need same validators in both types of components we have to
implement both interfaces which leeds mostly to lot of duplicit code. So
i was wondering is there any particular reason that FormValidators and
Validators are separated?
Thanks for respond.
Jan Ferko
Re: IValidator vs IFormValidator
Posted by Martin Grigorov <mg...@apache.org>.
Form has #add(IFormValidator)
FormComponent has #add(IValidator)
what exactly do you mix ?
On Wed, Jan 19, 2011 at 3:42 PM, Jan Ferko <ju...@gmail.com> wrote:
> Hi,
>
> I worked on validators for my app and I noticed that IFormValidator is not
> subinterface of IValidator, which made some problems in app as we are using
> both components which needs IValidators and IFormValidators as we need same
> validators in both types of components we have to implement both interfaces
> which leeds mostly to lot of duplicit code. So i was wondering is there any
> particular reason that FormValidators and Validators are separated?
> Thanks for respond.
>
> Jan Ferko
>