You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jmpdev <jm...@free.fr> on 2007/02/28 00:09:03 UTC

Validator validWhen

Hi,

 

I would like to know if it is possible to call validWhen on the client
side?

I didn't find validWhen.js is it possible to find it somewhere?

 

Thanks,

Regards, Jean-Marie.


Re: Validator validWhen

Posted by Niall Pemberton <ni...@gmail.com>.
On 2/28/07, jmpdev@free.fr <jm...@free.fr> wrote:
>
> Thank you for your reply.
>
> Why is it only server-side ?

Because no-one has written the equivalent functionality in JavaScript.
Validwhen uses antlr to evaluate expressions on the server side -
replicating its functionality in JavaScript would be probably be
difficult. I think if you were looking to provide that kind of
validation for both client and server side then it would be easier to
start afresh and not use antlr.

Niall

[1] http://www.antlr.org/

> Regards,
>
>
> Selon Niall Pemberton <ni...@gmail.com>:
>
> > No its server-side only.
> >
> > Niall
> >
> > On 2/27/07, jmpdev <jm...@free.fr> wrote:
> > > Hi,
> > >
> > > I would like to know if it is possible to call validWhen on the client
> > > side?
> > >
> > > I didn't find validWhen.js is it possible to find it somewhere?
> > >
> > > Thanks,
> > >
> > > Regards, Jean-Marie.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validator validWhen

Posted by jm...@free.fr.
Thank you for your reply.

Why is it only server-side ?

Regards,


Selon Niall Pemberton <ni...@gmail.com>:

> No its server-side only.
>
> Niall
>
> On 2/27/07, jmpdev <jm...@free.fr> wrote:
> > Hi,
> >
> > I would like to know if it is possible to call validWhen on the client
> > side?
> >
> > I didn't find validWhen.js is it possible to find it somewhere?
> >
> > Thanks,
> >
> > Regards, Jean-Marie.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validator validWhen

Posted by Niall Pemberton <ni...@gmail.com>.
No its server-side only.

Niall

On 2/27/07, jmpdev <jm...@free.fr> wrote:
> Hi,
>
> I would like to know if it is possible to call validWhen on the client
> side?
>
> I didn't find validWhen.js is it possible to find it somewhere?
>
> Thanks,
>
> Regards, Jean-Marie.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org