Package javax.faces.view

Examples of javax.faces.view.ViewDeclarationLanguage.createComponent()


                    facesContext, facesContext.getViewRoot().getViewId());
           
            panel3 = new HtmlPanelGroup();
            Map<String, Object> attributes = new HashMap<String, Object>();
            attributes.put("src", "/staticPageBinding3_1.xhtml");
            UIComponent component = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/facelets",
                "include", attributes);
            panel3.getChildren().add(component);

        }
View Full Code Here


                    facesContext, facesContext.getViewRoot().getViewId());
           
            panel4 = new HtmlPanelGroup();

            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_1", attributes);
            UIOutput text = (UIOutput) facesContext.getApplication().
                createComponent(UIOutput.COMPONENT_TYPE);
            text.setValue("Dynamically added header");
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_3", attributes);
            cc.setId("ccpanel");
           
            Map<String, Object> attributes2 = new HashMap<String, Object>();
View Full Code Here

                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_3", attributes);
            cc.setId("ccpanel");
           
            Map<String, Object> attributes2 = new HashMap<String, Object>();
            UIComponent text = (UIComponent) vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_2", attributes2);
            text.setId("component");

            cc.getChildren().add(text);
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_1", attributes);
            cc.setId("ccpanel");
           
            Map<String, Object> attributes2 = new HashMap<String, Object>();
View Full Code Here

                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_1", attributes);
            cc.setId("ccpanel");
           
            Map<String, Object> attributes2 = new HashMap<String, Object>();
            UIComponent text = (UIComponent) vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_2", attributes2);
            text.setId("component");

            cc.getFacets().put("header", text);
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_4", attributes);
            UIOutput text = (UIOutput) facesContext.getApplication().
                createComponent(UIOutput.COMPONENT_TYPE);
            text.setValue("Dynamically added header");
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_7", attributes);
            UIOutput text = (UIOutput) facesContext.getApplication().
                createComponent(UIOutput.COMPONENT_TYPE);
            text.setValue("Dynamically added header");
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_3", attributes);
            UIOutput text = (UIOutput) facesContext.getApplication().
                createComponent(UIOutput.COMPONENT_TYPE);
            text.setValue("Dynamically added header");
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_4", attributes);
            cc.setId("ccpanel");
           
            Map<String, Object> attributes2 = new HashMap<String, Object>();
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.