--- Rob Leland <[EMAIL PROTECTED]> wrote:
> A while back I suggested using Rhino to consolidate all validations so
> server side & client side
> validations were the same core code written in JS. It this more viable
> now ? Maintaining 2 sets of
> validations in java & javascript items tend to get out of sync. This
> could be done as a new plugin to demonstrate.
One thing we would need is a quick performance test between the existing
Java code and the JS just to make sure we're not grossly decreasing
performance. IMO, some decrease in performance would be fine to gain a
common code base. I've recently ported some Java code to use JS in Rhino
and it was a relatively easy line for line conversion :-). Overall I've
been very impressed with Rhino so I'm looking forward to using it more and
more.
If we had a Rhino based validation option in Commons Validator, we could
potentially remove the validwhen and requiredif validations in Struts.
While they're quite useful, I always have to lookup the docs to remember
how to configure them correctly. Having a more flexible JS option would
be easier.
David
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]