Well, I'm fixing a bug now which is going to add namespace to the mix of
required parameters... 

Why can't you get the ActionInvocation? It's in the ActionContext, after
all...

Jason

> -----Original Message-----
> From: Cameron Braid [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 09, 2003 9:38 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] WW2 Validation
> 
> 
> 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().getRuntimeConfiguratio
> n().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.
> 
> Thanks,
> 
> ..Cam..
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of 
> TotalView, The best thread debugger on the planet. Designed 
> with thread debugging features you've never dreamed of, try 
> TotalView 6 free at www.etnus.com. 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to