Could be a neat idea for an optionalValidator2 :)

Andrew Robinson wrote:
I was looking into the code of the optional validator, and was
wondering if it would be much better placed in JDK 1.5. Instead of
creating "optionalValidator" tags with embedded validator IDs, it
could use JDK 1.5 proxy classes as Validator and StateHolder are
interfaces.

Then, the proxy could catch all ValidationExceptions from validators
and do what it needs to do. The developer would not need to change
their view code at all. With facelets it should be relatively easy to
build a tag handler that would create the proxy from the real
validator.

Just an idea

-Andrew





Reply via email to