Hi,

I want to validate multiple non-required fields in a form. All arguments
have the same (=none) parameters and errors so I would like to nest the
arguments to shorten the code.

Is it possible to have multiple argument-tags in the arguments-tag or do
you need a full copy of the validator-tag for each argument?


this example doesn't work when given 2 argument-tags inside the
arguments-tag:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ae:configurations
        xmlns="http://agavi.org/agavi/config/parts/validators/1.0";
        xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0";
        parent="%core.config_dir%/validators.xml"
>
        <ae:configuration>
        <validators method="read">
                        <validator class="string" required="false"
severity="silent">
                                <arguments>
                                        <argument
name="val_name">name</argument>
                                        <argument
name="val_first_name">first_name</argument>
                                </arguments>
                        </validator>    
                </validators>
        </ae:configuration>
</ae:configurations>

      

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to