]
Gavin King closed JBSEAM-135.
-----------------------------
Resolution: Out of Date
No longer relevant since @IfInvalid was deprecated
Patch to allow pluggable validation implementations
---------------------------------------------------
Key: JBSEAM-135
URL:
http://jira.jboss.com/jira/browse/JBSEAM-135
Project: JBoss Seam
Issue Type: Patch
Components: Core
Affects Versions: 1.0 beta 2
Reporter: Marvin van Schalkwyk
Attachments: pluggable-validator.patch, validation-(a)ifValid.patch
I needed to replace the Hibernate Validator implementation with my own. I also needed to
allow invalid values that were not associated with a particular property.
Summary of changes:
- New package, org.jboss.seam.validator, that defines interfaces for Component Validator
Factories, Component Validators, and Invalid Values. Also in here are the default
Hibernate Validator implementations of each.
- New built-in component, org.jboss.seam.core.Validator, that provides the
ComponentValidatorFactory instances. Exposes a factoryClass attribute for seam.properties
to replace the default Hibernate Validator factory implementation.
- Changes to Component for obvious reasons, and also to lazily initialize validators,
since validation now depends on a component in application scope.
- Changes to Initialization to init new Validator component.
- Changes to the InterceptorTest to get it working with the changes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: