OK I see what you mean and I agree its not possible to configure validator
in the traditional way. So the question is what mechanism do you have that
tells you how to validate these fields? You must be getting some meta data
that indicates what validation needs to be done for a specific property? My
first thought would be that when you receive that meta data, you use it to
create the validator resources - basically doing the job that the
ValidatorPlugIn does when it parses the validation.xml and loads the
validators resources.

Niall

----- Original Message ----- 
From: "Andrew Waite" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Sunday, February 13, 2005 11:30 AM
Subject: Re: Using Struts Validator on Map-backed ActionForms


> Niall,
>
> Thanks again for the reply. I am afraid this is not going to work for
> me, however.  The problem is I don't see how I can "do nothing
> different than normal validation".  Normal validation requires the
> field names and validations to be declared in the validation.xml file.
>  I do not know in advance what those values will be. :(
>
> If I am missing something let me know but I am just not able to comply
> with the validation.xml declaration requirement since I don't know
> what to put in the property value:
>
> <form name="myLazyForm">
>     <field property="???????????"  depends="required">
>         <arg key="myLazyForm.?????????.displayname"/>
>     </field>
> </form>
>
> Andrew



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to