Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta1
-
None
Description
I have implemented server side validation using the ww2 validation framework, which works rather well, thanks.
My next task it to implement client side validation, using JavaScript.
What I wish to do is this:
WIthin my JSP Form tag ( a modified version of yours )
- I want to find out which action that the form's action
(SaveThingy.action) relates to - With this action, I want to lookup the defined validators
- Then I want to generate calls to javascript validators for each field
I know that not all validators will be able to be expressed in javascript.. eg expression
Though most of them will.
Currently I need to pass an ActionInvocation to the
ActionValidatorManager.getValidators(ActionInvocation) method, which in my case is impossible. Since the ActionValidatorManager.getValidators() (and its related methods) only uses the actionName, and actionClass, can these be the parameters instead of the invocation ?
I presume that I can use ConfigurationManager.getConfiguration().getRuntimeConfiguration().getActionC
onfig(namespace, actionName) to obtain the action config, and therefore get the actionClass.
So.. All in all it is very possible, if this change can be made to the
ActionValidatorManager.getValidators() method... Or at least a secondard method with my requested signature can be added.
Attachments
Issue Links
- is required by
-
XW-856 Create VisitorFieldValidator
- Closed