Package com.sun.facelets

Examples of com.sun.facelets.Facelet.apply()


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

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


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

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

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

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

        FaceletFactory f = FaceletFactory.getInstance();
        Facelet at = f.getFacelet("view.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        assertEquals("german locale", Locale.GERMAN, root.getLocale());
    }

}
View Full Code Here

        FacesContext faces = FacesContext.getCurrentInstance();
        faces.getExternalContext().getRequestMap().put("company", Example.createCompany());
       
       
        UIViewRoot root = faces.getViewRoot();
        f.apply(faces, root);
       
        FastWriter fw = new FastWriter();
        ResponseWriter rw = faces.getResponseWriter();
        rw = rw.cloneWithWriter(fw);
        faces.setResponseWriter(rw);
View Full Code Here

        FaceletFactory f = FaceletFactory.getInstance();
        Facelet at = f.getFacelet("componentOwner.xml");
       
        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIComponent c = root.findComponent("cmd");
        assertNotNull("cmd", c);
       
        Object v = c.getAttributes().get("id");
View Full Code Here

        FaceletFactory f = FaceletFactory.getInstance();
        Facelet at = f.getFacelet("commandButton.xml");
       
        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
       
        UIComponent c = root.findComponent("form:button");
        assertNotNull("button", c);
       
        Object v = c.getAttributes().get("id");
View Full Code Here

        FaceletFactory f = FaceletFactory.getInstance();
        Facelet at = f.getFacelet("panelGrid.xml");

        UIViewRoot root = faces.getViewRoot();
        at.apply(faces, root);
    }

}
View Full Code Here

       
        UIViewRoot root = faces.getViewRoot();

        // make sure the form is there
        e.setManagement(true);
        at.apply(faces, root);
        UIComponent c = root.findComponent("form");
        assertNotNull("form is null", c);
       
        // now make sure it isn't
        e.setManagement(false);
View Full Code Here

        UIComponent c = root.findComponent("form");
        assertNotNull("form is null", c);
       
        // now make sure it isn't
        e.setManagement(false);
        at.apply(faces, root);
        c = root.findComponent("form");
        assertNull("form is not null", c);
    }
   
    public void testForEach() throws Exception {
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.