On 4 Nov 2009, at 20:32, Guilherme Aiolfi wrote:
> isn't <validator class="FooValidator" required="false"> what you are
> looking for?
I don't think so. I want the validator itself to be required, just
that some of the arguments to be optional. The following is a
(simplified) example of what I would like:
<validator class="MyValidator" required="true">
<arguments>
<argument>requiredArgument</argument>
<argument>optionalArgument</argument>
</arguments>
<ae:parameters>
<ae:parameter name="export">exportedParameter</ae:parameter>
</ae:parameters>
</validator>
I would like the validator to run even if "optionalArgument" has not
been submitted. However, if "requiredArgument" is not submitted, I
would like an error to be thrown.
Michal.
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users