Package javax.faces.component

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


       
        bean.setValidator1Called(false);
        input1target.getValidators()[0].validate(facesContext, input1target, "x");
        Assert.assertTrue(bean.isValidator1Called());

        UIInput input1notarget = (UIInput) compositeComponent1target.findComponent("testComponentNoTarget");
        Assert.assertNotNull(input1notarget);
        Assert.assertNotNull(input1notarget.getValidators());
        Assert.assertEquals(1, input1notarget.getValidators().length);
       
        compositeComponent1.pushComponentToEL(facesContext, compositeComponent1);
View Full Code Here


        compositeComponent1target.popComponentFromEL(facesContext);
        compositeComponent1.popComponentFromEL(facesContext);
       
        UINamingContainer compositeComponent1notarget = (UINamingContainer) compositeComponent1.findComponent("simpleAttributeMethodExpressionNoTarget");
        Assert.assertNotNull(compositeComponent1notarget);
        UIInput inputnotarget1target = (UIInput) compositeComponent1notarget.findComponent("testComponent");
        Assert.assertNotNull(inputnotarget1target);
        Assert.assertNotNull(inputnotarget1target.getValidators());
        Assert.assertEquals(1, inputnotarget1target.getValidators().length);
       
        compositeComponent1.pushComponentToEL(facesContext, compositeComponent1);
View Full Code Here

        inputnotarget1target.getValidators()[0].validate(facesContext, inputnotarget1target, "x");
        Assert.assertTrue(bean.isValidator1Called());
        compositeComponent1notarget.popComponentFromEL(facesContext);
        compositeComponent1.popComponentFromEL(facesContext);
       
        UIInput inputnotarget1notarget = (UIInput) compositeComponent1notarget.findComponent("testComponentNoTarget");
        Assert.assertNotNull(inputnotarget1notarget);
        Assert.assertNotNull(inputnotarget1notarget.getValidators());
        Assert.assertEquals(1, inputnotarget1notarget.getValidators().length);
        compositeComponent1.pushComponentToEL(facesContext, compositeComponent1);
        compositeComponent1notarget.pushComponentToEL(facesContext, compositeComponent1notarget);
View Full Code Here

        UIComponent panelGroup1 = root.findComponent("testGroup1");
        Assert.assertNotNull(panelGroup1);
        UINamingContainer compositeComponent1 = (UINamingContainer) panelGroup1.getChildren().get(0);
        Assert.assertNotNull(compositeComponent1);
        UIInput input1 = (UIInput) compositeComponent1.findComponent("testComponentNoTarget");
        Assert.assertNotNull(input1);
        Assert.assertNotNull(input1.getValidators());
        Assert.assertEquals(1, input1.getValidators().length);
       
        compositeComponent1.pushComponentToEL(facesContext, compositeComponent1);
View Full Code Here

        UINamingContainer compositeComponent1 = (UINamingContainer) panelGroup1.getChildren().get(0);
        Assert.assertNotNull(compositeComponent1);

        UINamingContainer compositeComponent1inner = (UINamingContainer) compositeComponent1.findComponent("simpleAttributeActionMethodExpressionNoTarget");
        Assert.assertNotNull(compositeComponent1inner);
        UIInput testComponentNoTarget1 = (UIInput) compositeComponent1inner.findComponent("testComponentNoTarget");
        Assert.assertNotNull(testComponentNoTarget1);
        Assert.assertNotNull(testComponentNoTarget1.getValidators());
        Assert.assertEquals(1, testComponentNoTarget1.getValidators().length);

        compositeComponent1.pushComponentToEL(facesContext, compositeComponent1);
View Full Code Here

       
        UINamingContainer compositeComponent1n1 = (UINamingContainer) compositeComponent1.findComponent("compositeAttributeMethodExpressionNoTarget");
        Assert.assertNotNull(compositeComponent1n1);
        UINamingContainer compositeComponent1n2 = (UINamingContainer) compositeComponent1n1.findComponent("simpleAttributeMethodExpressionNoTarget");
        Assert.assertNotNull(compositeComponent1n2);
        UIInput input1 = (UIInput) compositeComponent1n2.findComponent("testComponentNoTarget");
        Assert.assertNotNull(input1);
        Assert.assertNotNull(input1.getValidators());
        Assert.assertEquals(1, input1.getValidators().length);
        compositeComponent1.pushComponentToEL(facesContext, compositeComponent1);
        compositeComponent1.pushComponentToEL(facesContext, compositeComponent1n2);
View Full Code Here

       
        bean.setValueChangeListener1Called(false);
        input1.getValueChangeListeners()[0].processValueChange(new ValueChangeEvent(input1,"x","y"));
        Assert.assertTrue(bean.isValueChangeListener1Called());
       
        UIInput input1n = (UIInput) compositeComponent1.findComponent("testComponentNoTarget");
       
        Assert.assertNotNull(input1n);
        Assert.assertNotNull(input1n.getValueChangeListeners());
        Assert.assertEquals(1, input1n.getValueChangeListeners().length);
       
View Full Code Here

       
        UIComponent panelGroup2 = root.findComponent("testGroup2");
        Assert.assertNotNull(panelGroup2);
        UINamingContainer compositeComponent2 = (UINamingContainer) panelGroup2.getChildren().get(0);
        Assert.assertNotNull(compositeComponent2);
        UIInput input2 = (UIInput) compositeComponent2.findComponent("testComponent");
        Assert.assertNotNull(input2);
        Assert.assertNotNull(input2.getValueChangeListeners());
        Assert.assertEquals(1, input2.getValueChangeListeners().length);
       
        bean.setValueChangeListener2Called(false);
View Full Code Here

       
        bean.setValueChangeListener2Called(false);
        input2.getValueChangeListeners()[0].processValueChange(new ValueChangeEvent(input2,"x","y"));
        Assert.assertTrue(bean.isValueChangeListener2Called());
       
        UIInput input2n = (UIInput) compositeComponent2.findComponent("testComponentNoTarget");
       
        Assert.assertNotNull(input2n);
        Assert.assertNotNull(input2n.getValueChangeListeners());
        Assert.assertEquals(1, input2n.getValueChangeListeners().length);
       
View Full Code Here

        UINamingContainer compositeComponent1 = (UINamingContainer) panelGroup1.getChildren().get(0);
        Assert.assertNotNull(compositeComponent1);
       
        UINamingContainer compositeComponent1target = (UINamingContainer) compositeComponent1.findComponent("simpleAttributeMethodExpressionTarget");
        Assert.assertNotNull(compositeComponent1target);
        UIInput input1target = (UIInput) compositeComponent1target.findComponent("testComponent");
        Assert.assertNotNull(input1target);
        Assert.assertNotNull(input1target.getValueChangeListeners());
        Assert.assertEquals(1, input1target.getValueChangeListeners().length);
       
        bean.setValueChangeListener1Called(false);
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.