Package javax.faces.component

Examples of javax.faces.component.UIViewRoot.findComponent()


        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testValidateBeanNesting.xhtml");
       
        // get the component instances
        UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
        UIInput doublenestedinput = (UIInput) root.findComponent("form:doublenestedinput");
        UIInput nestedinput2 = (UIInput) root.findComponent("form:nestedinput2");
        UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
       
        // all wrapped UIInputs have to have the BeanValidator installed
        Assert.assertFalse(_hasValidator(nestedinput, BeanValidator.class));
View Full Code Here


        vdl.buildView(facesContext, root, "testValidateBeanNesting.xhtml");
       
        // get the component instances
        UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
        UIInput doublenestedinput = (UIInput) root.findComponent("form:doublenestedinput");
        UIInput nestedinput2 = (UIInput) root.findComponent("form:nestedinput2");
        UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
       
        // all wrapped UIInputs have to have the BeanValidator installed
        Assert.assertFalse(_hasValidator(nestedinput, BeanValidator.class));
        Assert.assertFalse(_hasValidator(doublenestedinput, BeanValidator.class));
View Full Code Here

       
        // get the component instances
        UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
        UIInput doublenestedinput = (UIInput) root.findComponent("form:doublenestedinput");
        UIInput nestedinput2 = (UIInput) root.findComponent("form:nestedinput2");
        UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
       
        // all wrapped UIInputs have to have the BeanValidator installed
        Assert.assertFalse(_hasValidator(nestedinput, BeanValidator.class));
        Assert.assertFalse(_hasValidator(doublenestedinput, BeanValidator.class));
        Assert.assertFalse(_hasValidator(nestedinput2, BeanValidator.class));
View Full Code Here

        // build testValidateBeanDisabledAndEnabled.xhtml
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testValidateBeanDisabledAndEnabled.xhtml");
       
        // get the component instances
        UIInput input = (UIInput) root.findComponent("form:input");
       
        // the UIInput has to have the BeanValidator installed
        Assert.assertTrue(_hasValidator(input, BeanValidator.class));
    }
   
View Full Code Here

        // build testValidateBeanNestingAndNested.xhtml
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testValidateBeanNestingAndNested.xhtml");
       
        // get the component instances
        UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
        UIInput nestedinputWithValidator = (UIInput) root.findComponent("form:nestedinputWithValidator");
        UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
       
        // no wrapped UIInput has to have the BeanValidator installed,
        // except the one nesting <f:validateBean /> itself.
View Full Code Here

        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testValidateBeanNestingAndNested.xhtml");
       
        // get the component instances
        UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
        UIInput nestedinputWithValidator = (UIInput) root.findComponent("form:nestedinputWithValidator");
        UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
       
        // no wrapped UIInput has to have the BeanValidator installed,
        // except the one nesting <f:validateBean /> itself.
        Assert.assertFalse(_hasValidator(nestedinput, BeanValidator.class));
View Full Code Here

        vdl.buildView(facesContext, root, "testValidateBeanNestingAndNested.xhtml");
       
        // get the component instances
        UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
        UIInput nestedinputWithValidator = (UIInput) root.findComponent("form:nestedinputWithValidator");
        UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
       
        // no wrapped UIInput has to have the BeanValidator installed,
        // except the one nesting <f:validateBean /> itself.
        Assert.assertFalse(_hasValidator(nestedinput, BeanValidator.class));
        Assert.assertTrue(_hasValidator(nestedinputWithValidator, BeanValidator.class));
View Full Code Here

        // build testValidateBean.xhtml
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testValidateBean.xhtml");
       
        // get the component instances
        UIInput input = (UIInput) root.findComponent("form:input");
       
        // the validationGroups have to match
        Assert.assertEquals(validationGroups, _getValidationGroups(input));
    }
   
View Full Code Here

        // build testValidateBeanEmptyInput.xhtml
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testValidateBeanEmptyInput.xhtml");
       
        // get the component instances
        UIInput input = (UIInput) root.findComponent("form:input");
       
        // the validationGroups have to match the Default ones
        Assert.assertEquals(javax.validation.groups.Default.class.getName(),
                _getValidationGroups(input));
    }
View Full Code Here

        // build testValidateBeanNesting.xhtml
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testValidateBeanNesting.xhtml");
       
        // get the component instances
        UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
        UIInput doublenestedinput = (UIInput) root.findComponent("form:doublenestedinput");
        UIInput nestedinput2 = (UIInput) root.findComponent("form:nestedinput2");
        UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
       
        // the validationGroups in the wrapped components have to match
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.