myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject OT: jsf-comp OptionalValidation
Date Tue, 13 Jun 2006 13:29:30 GMT
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

Mime
View raw message