struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@gmail.com>
Subject Re: Validator validWhen
Date Thu, 01 Mar 2007 13:20:33 GMT
On 2/28/07, jmpdev@free.fr <jmpdev@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 <niall.pemberton@gmail.com>:
>
> > No its server-side only.
> >
> > Niall
> >
> > On 2/27/07, jmpdev <jmpdev@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


Mime
View raw message