Examples of buildView()


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

               
                ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(
                        facesContext, viewId);
                if (vdl != null)
                {
                    vdl.buildView(facesContext, root);
                }
               
                // publish a PreRenderViewEvent: note that the event listeners
                // of this event can change the view, so we have to perform the algorithm
                // until the viewId does not change when publishing this event.
View Full Code Here

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

        DefaultFaceletsStateManagementStrategy stateManagement = new DefaultFaceletsStateManagementStrategy();
       
        servletContext.addInitParameter("javax.faces.STATE_SAVING_METHOD", "client");
       
        UIViewRoot viewRoot = vdl.createView(facesContext, "/root");
        vdl.buildView(facesContext, viewRoot);
        stateManagement.suscribeListeners(viewRoot);
       
        viewRoot.getAttributes().put("somekey", "somevalue");
       
        Object state1 = stateManagement.saveView(facesContext);
View Full Code Here

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

        DefaultFaceletsStateManagementStrategy stateManagement = new DefaultFaceletsStateManagementStrategy();
       
        servletContext.addInitParameter("javax.faces.STATE_SAVING_METHOD", "client");
       
        UIViewRoot viewRoot = vdl.createView(facesContext, "/root");
        vdl.buildView(facesContext, viewRoot);
        stateManagement.suscribeListeners(viewRoot);

        viewRoot.getAttributes().put("somekey", "somevalue");
       
        HtmlOutputText a = new HtmlOutputText();
View Full Code Here

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

       
        UIViewRoot viewRoot = vdl.createView(facesContext, "/root");
       
        facesContext.setCurrentPhaseId(PhaseId.RESTORE_VIEW);
       
        vdl.buildView(facesContext, viewRoot);
       
        stateManagement.suscribeListeners(viewRoot);
       
        facesContext.setCurrentPhaseId(PhaseId.RENDER_RESPONSE);
       
View Full Code Here

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

        DefaultFaceletsStateManagementStrategy stateManagement = new DefaultFaceletsStateManagementStrategy();
       
        servletContext.addInitParameter("javax.faces.STATE_SAVING_METHOD", "client");
       
        UIViewRoot viewRoot = vdl.createView(facesContext, "/root");
        vdl.buildView(facesContext, viewRoot);
        stateManagement.suscribeListeners(viewRoot);

        viewRoot.getAttributes().put("somekey", "somevalue");
       
        HtmlOutputText a = new HtmlOutputText();
View Full Code Here

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

        DefaultFaceletsStateManagementStrategy stateManagement = new DefaultFaceletsStateManagementStrategy();
       
        servletContext.addInitParameter("javax.faces.STATE_SAVING_METHOD", "client");
       
        UIViewRoot viewRoot = vdl.createView(facesContext, "/root");
        vdl.buildView(facesContext, viewRoot);
        stateManagement.suscribeListeners(viewRoot);

        viewRoot.getAttributes().put("somekey", "somevalue");
       
        HtmlOutputText a = new HtmlOutputText();
View Full Code Here

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

               
                ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(
                        facesContext, viewId);
                if (vdl != null)
                {
                    vdl.buildView(facesContext, root);
                }
               
                // publish a PreRenderViewEvent: note that the event listeners
                // of this event can change the view, so we have to perform the algorithm
                // until the viewId does not change when publishing this event.
View Full Code Here

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

                if (!skipBuildView)
                {
                    try
                    {
                        context.setProcessingEvents (true);
                        vdl.buildView (context, view);
                        // In the latest code related to PostAddToView, it is
                        // triggered no matter if it is applied on postback. It seems that MYFACES-2389,
                        // TRINIDAD-1670 and TRINIDAD-1671 are related.
                        suscribeListeners(view);
                    }
View Full Code Here

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

                // the behavior of those listeners, because for partial state saving we need this listeners
                // be called from here and relocate components properly, but for now we have to let this code as is.
                try
                {
                    context.setProcessingEvents (true);
                    vdl.buildView (context, view);
                    // In the latest code related to PostAddToView, it is
                    // triggered no matter if it is applied on postback. It seems that MYFACES-2389,
                    // TRINIDAD-1670 and TRINIDAD-1671 are related.
                    // This code is no longer necessary, but better let it here.
                    //_publishPostBuildComponentTreeOnRestoreViewEvent(context, view);
View Full Code Here

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

            String viewId = viewHandler.deriveViewId(context, calculateViewId(context));
            ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(context, viewId);
            UIViewRoot viewRoot = vdl.createView(context, viewId);
            context.setViewRoot(viewRoot);

            vdl.buildView(context, viewRoot);

            // Workaround for Mojarra
            // if UIViewRoot == null -> 'IllegalArgumentException' is throwed instead of 'ViewExpiredException'
            if (rootCause == null && throwable instanceof IllegalArgumentException) {
                rootCause = new javax.faces.application.ViewExpiredException(viewId);
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.