Package javax.faces.component

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


     
      // If change target for the qualified change is not inside of the specified root, skip
      if (!_acceptChange(qualifiedChange, rootId))
        continue;
     
      UIComponent targetComponent = viewRoot.findComponent(targetComponentScopedId);
     
      // Possible that the target component no more exists in the view, if yes, skip
      if (targetComponent == null)
      {
        _LOG.info(this.getClass().getName(),
View Full Code Here


        // build testUIRepeat.xhtml
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testUIRepeat.xhtml");
       
        // get the component instances
        UIRepeat repeat = (UIRepeat) root.findComponent("form:repeat");
       
        // create the VisitCallback
        TestVisitCallback testVisitCallback = new TestVisitCallback(facesContext, repeatValues);
       
        // save some values in #{row} and #{status} and test the
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 UIInput has to have the BeanValidator installed
        Assert.assertTrue(_hasValidator(input, BeanValidator.class));
    }
   
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 UIInput has to have the BeanValidator installed
        Assert.assertTrue(_hasValidator(input, 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 UIInput must not have the BeanValidator installed
        Assert.assertFalse(_hasValidator(input, BeanValidator.class));
    }
   
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");
       
        // all wrapped UIInputs have to have the BeanValidator installed
View Full Code Here

        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.assertTrue(_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.assertTrue(_hasValidator(nestedinput, BeanValidator.class));
        Assert.assertTrue(_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.assertTrue(_hasValidator(nestedinput, BeanValidator.class));
        Assert.assertTrue(_hasValidator(doublenestedinput, BeanValidator.class));
        Assert.assertTrue(_hasValidator(nestedinput2, BeanValidator.class));
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");
       
        // all wrapped UIInputs have to have the BeanValidator installed
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.