You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Fouche, Pierre" <pi...@hp.com> on 2009/06/26 09:56:46 UTC

Using validators to validate page parameters

Is there a way to use Wicket validators (implementations of IValidator) to validate PageParameters? It seems to me that validators can only be added to form components.

Thanks,
Pierre

RE: Using validators to validate page parameters

Posted by "Fouche, Pierre" <pi...@hp.com>.
Thanks Igor. 

> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com] 
> Sent: Friday, June 26, 2009 5:09 PM
> To: users@wicket.apache.org
> Subject: Re: Using validators to validate page parameters
> 
> Validatable v=new Validatable(value);
> new FooValidator().validate(v);
> boolean valid=v.isValid();
> 
> -igor
> 
> On Fri, Jun 26, 2009 at 12:56 AM, Fouche, 
> Pierre<pi...@hp.com> wrote:
> > Is there a way to use Wicket validators (implementations of 
> IValidator) to validate PageParameters? It seems to me that 
> validators can only be added to form components.
> >
> > Thanks,
> > Pierre
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Using validators to validate page parameters

Posted by Igor Vaynberg <ig...@gmail.com>.
Validatable v=new Validatable(value);
new FooValidator().validate(v);
boolean valid=v.isValid();

-igor

On Fri, Jun 26, 2009 at 12:56 AM, Fouche, Pierre<pi...@hp.com> wrote:
> Is there a way to use Wicket validators (implementations of IValidator) to validate PageParameters? It seems to me that validators can only be added to form components.
>
> Thanks,
> Pierre
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org