Author: johndament
Date: Mon Jul 15 00:23:18 2013
New Revision: 1503088
URL: http://svn.apache.org/r1503088
Log:
Reworded due to limitations.
Modified:
deltaspike/site/trunk/content/bean-validation.mdtext
Modified: deltaspike/site/trunk/content/bean-validation.mdtext
URL:
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/bean-validation.mdtext?rev=1503088&r1=1503087&r2=1503088&view=diff
==============================================================================
--- deltaspike/site/trunk/content/bean-validation.mdtext (original)
+++ deltaspike/site/trunk/content/bean-validation.mdtext Mon Jul 15 00:23:18
2013
@@ -30,11 +30,12 @@ The main feature of the Bean Validation
## Code Requirements
-There are no compile dependencies to use the Bean Validation module. You
simply need to override the factory, either in XML or in Java:
+There are no compile dependencies to use the Bean Validation module. You
simply need to override the factory, either in Java:
:::java
Validation.byDefaultProvider().configure().constraintValidatorFactory(new
CDIAwareConstraintValidatorFactory()).buildValidatorFactory()
+Or in XML:
:::xml
<validation-config
xmlns="http://jboss.org/xml/ns/javax/validation/configuration"