I don’t know about this… I think something on the WebWork side can associate JS with the validations, but the validator framework is in XWork.
I think the ExpressionValidators will have to be ones where you catch that on the submit to the server… unless you feel like rewriting OGNL as a _javascript_ lib J
-----Original Message-----
And then to make matters more complex it’d be ideal if we could have the validation framework rules provide the _javascript_ – not too bad for simple ones but it gets much harder for the ExpressionValidator.
-----Original Message-----
I have a client side library that I have built for some projects, that I have integrated into the vm templates (webwork ui components) and my own freemarker macros.
It requires _javascript_1.3 and works on IE4+ and Netscape 6+
There are two modules
1) form model abstracts the form and inputs into a _javascript_ object model 2) validation model object model for validators that register with the form model
Currently, I don't have a way to turn it on / off per form, though I will look into that asap.
This will certainly be a post 2.0 feature sorry.. I am a little busy at the moment.
Cameron.
|
Title: Message
- [OS-webwork] javascript actions on form components? CVillela
- RE: [OS-webwork] javascript actions on form component... Robert Douglass
- RE: [OS-webwork] javascript actions on form component... Jason Carreira
- RE: [OS-webwork] javascript actions on form compo... Cameron Braid
- Jason Carreira