Package javax.faces.view

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


                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_4", 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);
            UIOutput text = (UIOutput) facesContext.getApplication().
                createComponent(UIOutput.COMPONENT_TYPE);
            text.setValue("Dynamically added header");
View Full Code Here

                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());

            Map<String, Object> attributes = new HashMap<String, Object>();
            attributes.put("src", "/addSimpleIncludeVDL_1_1.xhtml");
            UIComponent component = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/facelets",
                "include", attributes);
            getChildren().add(component);
           
        }
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());

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

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

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

                    facesContext, facesContext.getViewRoot().getViewId());
           
            Map<String, Object> attributes = new HashMap<String, Object>();
            attributes.put("value", "Dynamically added child");
           
            UIComponent component = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/html",
                "outputText", attributes);
            getChildren().add(component);
        }
    }
View Full Code Here

            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());

            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent component = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_4", attributes);
           
            Map<String, Object> attributes2 = new HashMap<String, Object>();
            UIComponent text = (UIComponent) vdl.createComponent(facesContext,
View Full Code Here

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

            component.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 component = 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 component = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_1", attributes);
           
            Map<String, Object> attributes2 = new HashMap<String, Object>();
            UIComponent text = (UIComponent) vdl.createComponent(facesContext,
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.