Clones this validation rule but with a different base path
Used within validation logic of @link{ValidationManager}
The base path is also applied to all sub rules recursively.
Since successView and validationFailureView can contain
multiple possible redirection paths using the format
incomingRequestPath=outgoingRedirectPath, we'll need to
identify which incomingRequestPath best matches the
request that generated this validation, and then return
the view name (outgoingRedirectPath) associated with that
path.
Either gets the current thread-bound Web Flow requestContext
instance, if this is a Web Flow request, or mocks a Web Flow
request out of an MVC request, in order to standardize
our web-scoped property access.
When a BindException is caught, purportedly because some validation
using the @link{Valid} annotated validation failed, redirect to the view
indicated by the @link{ValidationFailureView} annotation of the controller
method, and attach any validation errors messages.
When annotating a controller method, the value
is a string that indicates the view that should follow
a successful completion of the method, overriding any previously
evaluated view names.
Since use of template references and performing error
checking on them would otherwise be expensive, unwrap
all template references into rule sets during initialization.
Validate the given rule
Generally, a rule should return valid if the model is null or empty,
unless this is a rule to validate the presence of the object.
When annotating a controller method, the value
is a string that indicates the view that should follow
failed validation on an @Valid annotated model, overriding any previously
evaluated view names.
Registerable as a JSR-303 @link{CustomValidatorBean}, this
ValidationManager class is instead responsible for reading
XML-driven nested validation rules.
Parses the validation namespace "mvc-annotations" element
into all the beans and registrations required in order to configure
use of the @link{SuccessView} and @link{ValidationFailureView} annotations.
A java representation of an XML template-ref
Template references will be unwrapped into rule
sets during initialization of the ValidationRulesContainer
in order to save on processing time down the road.