edu.nrao.sss.webapp.faces
Class FacesAwareValidationManager
java.lang.Object
edu.nrao.sss.webapp.faces.FacesAwareValidationManager
public class FacesAwareValidationManager
- extends Object
This is a ValidationManager Facade that only exposes the validate method
(with the same signature), but takes care of handling the addition of
messages to the FacesContext and logging.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacesAwareValidationManager
public FacesAwareValidationManager()
validate
public boolean validate(Object target,
ValidationPurpose purpose)
- This method calls the underlying
ValidationManager
's validate
method and handles the results of said validation. More specifically, if
there are no displayable failures, the non-displayable failures are
logged and we return true. If there are displayable Failures, but they
are only warnings or "concerns", a warning FacesMessage is added to the
context, but the method returns true. If there are real failures, they
are added to the context and we return false.
Copyright © 2009. All Rights Reserved.