On Jan 13, 2004, at 5:43 PM, Kelly Harward wrote:
I really need the following in my validation.xml:

<formset>
        <form name="/foo1">
                <field property="bar" depends="required">
                        <arg0 key="fooForm.bar"/>
                </field>
        </form>
        <form name="/foo2">
                <field property="bar" depends="required">
                        <arg0 key="fooForm.bar"/>
                </field>
        </form>
        <form name="/foo3">
                <field property="bar" depends="required">
                        <arg0 key="fooForm.bar"/>
                </field>
        </form>
</formset>

Does anyone know how I can get XDoclet to generate multiple <form>
elements in validation.xml from the same (ValidatorActionForm) form
bean?

Currently <strutsvalidationxml> does not support this. If you want all validations the same for all paths, why not use ValidatorForm as the base class instead and always validate the form? You can still turn validation off on a per-path basis, right?


But, if you want different field validations per path, this would require some tougher changes to allow for per-path validations to be specified.

Either way, you will need to go and tweak XDoclet to accommodate your needs here.

Erik




------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to