Package javax.faces.validator

Examples of javax.faces.validator.ValidatorException


  public void validate(FacesContext facesContext, UIComponent uiComponent, Object object) throws ValidatorException {
   
    BigDecimal valor = (BigDecimal) object;
   
    if(valor == null || valor.doubleValue() <= 0){
      throw new ValidatorException(
        new FacesMessage(
          FacesMessage.SEVERITY_ERROR,
          "Existem campos obrigatórios sem preenchimento..: ",
          "O Valor é obrigatório e deve ser maior que zero"
      ));
View Full Code Here



  @Override
  public void validate(FacesContext facesContext, UIComponent uiComponent, Object cliente) throws ValidatorException {
    if(cliente == null){ 
      throw new ValidatorException(
         new FacesMessage(
              FacesMessage.SEVERITY_ERROR,
              "Existem campos obrigatórios sem preenchimento..: ",
              "O Cliente é obrigatório"
        ));
View Full Code Here

  @Override
  public void validate(FacesContext facesContext, UIComponent uiComponent, Object object) throws ValidatorException {

    if(object == null){
      throw new ValidatorException(
        new FacesMessage(
          FacesMessage.SEVERITY_ERROR,
          "Existem campos obrigatórios sem preenchimento..: ",
          "A Data é obrigatória"
      ));
View Full Code Here

  @Override
  public void validate(FacesContext facesContext, UIComponent uiComponent, Object object) throws ValidatorException {

    if(StringUtils.isBlank((String) object)){
      throw new ValidatorException(
        new FacesMessage(
          FacesMessage.SEVERITY_ERROR,
          "Existem campos obrigatórios sem preenchimento..: ",
          "A Natureza é obrigatória"
      ));
View Full Code Here


  @Override
  public void validate(FacesContext facesContext, UIComponent uiComponent, Object colaborador) throws ValidatorException {
    if(colaborador == null){ 
      throw new ValidatorException(
         new FacesMessage(
          FacesMessage.SEVERITY_ERROR,
          "Existem campos obrigatórios sem preenchimento..: ",
          "O Colaborador é obrigatório"
        ));
View Full Code Here

 
  public void validataInput(FacesContext context,  
          UIComponent component, Object value){
    String text = value.toString()
      if(text.equals("")){ 
          throw new ValidatorException(new FacesMessage("查询内容不能为空!"));
     
  }
View Full Code Here

    String value = obj.toString();
   
    if(value.equals(""))
    {
     
      throw new ValidatorException(new FacesMessage("请选择,查询类型!"));
    }
  }
View Full Code Here

 
  public void validateInput(FacesContext context,  
          UIComponent component, Object value){
    String text = value.toString()
      if(text.equals("")){ 
          throw new ValidatorException(new FacesMessage(" 内容不能为空!"));
     
  }
View Full Code Here

 
  public void validateInput(FacesContext context,  
          UIComponent component, Object value){
    String text = value.toString()
      if(text.equals("")){ 
          throw new ValidatorException(new FacesMessage(" 内容不能为空!"));
     
  }
View Full Code Here

 
  public void validataInput(FacesContext context,  
          UIComponent component, Object value){
    String text = value.toString()
      if(text.equals("")){ 
          throw new ValidatorException(new FacesMessage("查询内容不能为空!"));
     
  }
View Full Code Here

TOP

Related Classes of javax.faces.validator.ValidatorException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.