Package org.richfaces.component.UIGraphValidator

Examples of org.richfaces.component.UIGraphValidator.GraphValidatorState


    ValueExpression valueExpression = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),"#{cloneableBean}", CloneableBean.class);
    validator.setValueExpression("value", valueExpression);
    CloneableBean bean = new CloneableBean();
    facesContext.getExternalContext().getSessionMap().put("cloneableBean", bean);
    validator.processDecodes(facesContext);
    GraphValidatorState validatorState = validator.getValidatorState(facesContext);
    assertNotNull(validatorState);
    assertNotSame(bean, validatorState.getCloned());
    assertEquals(bean, validatorState.getCloned());
  }
View Full Code Here


    ValueExpression valueExpression = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),"#{cloneableBean}", CloneableBean.class);
    validator.setValueExpression("value", valueExpression);
    CloneableBean bean = new CloneableBean();
    facesContext.getExternalContext().getSessionMap().put("cloneableBean", bean);
    validator.processDecodes(facesContext);
    GraphValidatorState validatorState = validator.getValidatorState(facesContext);
    assertNotNull(validatorState);
    assertNotSame(bean, validatorState.getCloned());
    validator.processValidators(facesContext);
    assertTrue(facesContext.getRenderResponse());
    assertTrue(facesContext.getMessages().hasNext());
  }
View Full Code Here

TOP

Related Classes of org.richfaces.component.UIGraphValidator.GraphValidatorState

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.