Examples of findComponent()


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

        Facelet at = f.getFacelet("facet.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIData data = (UIData) root.findComponent("table");
       
        assertNotNull("data", data);
       
        UIComponent footer = data.getFooter();
       
View Full Code Here

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

        Facelet at = f.getFacelet("validator.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIInput input = (UIInput) root.findComponent("form:input");
       
        assertNotNull("input", input);
       
        assertEquals("input validator", 1, input.getValidators().length);
       
View Full Code Here

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

        Facelet at = f.getFacelet("validateDoubleRange.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIInput input = (UIInput) root.findComponent("form:input");
       
        assertNotNull("input", input);
       
        assertEquals("input validator", 1, input.getValidators().length);
       
View Full Code Here

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

        Facelet at = f.getFacelet("validateLength.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIInput input = (UIInput) root.findComponent("form:input");
       
        assertNotNull("input", input);
       
        assertEquals("input validator", 1, input.getValidators().length);
       
View Full Code Here

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

        Facelet at = f.getFacelet("validateLongRange.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIInput input = (UIInput) root.findComponent("form:input");
       
        assertNotNull("input", input);
       
        assertEquals("input validator", 1, input.getValidators().length);
       
View Full Code Here

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

        Facelet at = f.getFacelet("valueChangeListener.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIInput input = (UIInput) root.findComponent("form:input");
       
        assertNotNull("input", input);
       
        assertEquals("input listener", 1, input.getValueChangeListeners().length);
    }
View Full Code Here

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

        if(context.getExternalContext().getRequestParameterMap().containsKey("affectedGraphicImageComponent"))
        {                                
            UIViewRoot root = context.getViewRoot();
            String componentId = (String)context.getExternalContext().getRequestParameterMap().get("affectedGraphicImageComponent");

            UIComponent component = root.findComponent( componentId );

            if(component instanceof GraphicImageAjax)
            {               
              GraphicImageAjax graphicImageAjax = (GraphicImageAjax)component;
                try
View Full Code Here

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

                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testSimpleInsertChildrenNoAjax.xhtml");
       
        UIComponent panelGroup1 = root.findComponent("testGroup1");
        Assert.assertNotNull(panelGroup1);
        UINamingContainer compositeComponent1 = (UINamingContainer) panelGroup1.getChildren().get(0);
        Assert.assertNotNull(compositeComponent1);
        UIComponent facet1 = compositeComponent1.getFacet(UIComponent.COMPOSITE_FACET_NAME);
        Assert.assertNotNull(facet1);
View Full Code Here

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

                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testCompositeInsertChildren.xhtml");
       
        UIComponent panelGroup1 = root.findComponent("testGroup1");
        Assert.assertNotNull(panelGroup1);
        UINamingContainer compositeComponent1 = (UINamingContainer) panelGroup1.getChildren().get(0);
        Assert.assertNotNull(compositeComponent1);
        UIComponent facet1 = compositeComponent1.getFacet(UIComponent.COMPOSITE_FACET_NAME);
        Assert.assertNotNull(facet1);
View Full Code Here

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

                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
        vdl.buildView(facesContext, root, "testCompositeInsertChildren2.xhtml");
       
        UIComponent panelGroup1 = root.findComponent("testGroup1");
        Assert.assertNotNull(panelGroup1);
        UINamingContainer compositeComponent1 = (UINamingContainer) panelGroup1.getChildren().get(0);
        Assert.assertNotNull(compositeComponent1);
        UIComponent facet1 = compositeComponent1.getFacet(UIComponent.COMPOSITE_FACET_NAME);
        Assert.assertNotNull(facet1);
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.