edu.nrao.sss.webapp.faces
Class FacesAwareValidationManager

java.lang.Object
  extended by 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.


Constructor Summary
FacesAwareValidationManager()
           
 
Method Summary
 boolean validate(Object target, ValidationPurpose purpose)
          This method calls the underlying ValidationManager's validate method and handles the results of said validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesAwareValidationManager

public FacesAwareValidationManager()
Method Detail

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.