Examples of calculateResourceLibraryContracts()


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

        // When partial state saving is not used, createView() is not called. To ensure
        // everything is in place it is necessary to calculate the resource library
        // contracts and set them into facesContext.
        ViewDeclarationLanguage vdl = context.getApplication().getViewHandler().
            getViewDeclarationLanguage(context, viewId);
        List<String> contracts = vdl.calculateResourceLibraryContracts(
            context, viewId);
        context.setResourceLibraryContracts(contracts);
       
        // JSF 2.2 stateless views
        // We need to check if the incoming view is stateless or not and if that so rebuild it here
View Full Code Here

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

        UIViewRoot root = super.restoreView(context, viewId);
       
        ViewHandler viewHandler = context.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(context, viewId);
        context.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(context, viewId));      
       
        StateContext stateCtx = StateContext.getStateContext(context);
        stateCtx.startTrackViewModifications(context, root);
       
        return root;
View Full Code Here

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

        UIViewRoot result = super.createView(ctx, viewId);
        ViewHandler viewHandler = ctx.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(ctx, viewId);

        ctx.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(ctx, viewId));
       
        return result;
       
    }
View Full Code Here

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

        UIViewRoot root = super.restoreView(context, viewId);
       
        ViewHandler viewHandler = context.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(context, viewId);
        context.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(context, viewId));      
       
        StateContext stateCtx = StateContext.getStateContext(context);
        stateCtx.startTrackViewModifications(context, root);
       
        return root;
View Full Code Here

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

        UIViewRoot result = super.createView(ctx, viewId);
        ViewHandler viewHandler = ctx.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(ctx, viewId);

        ctx.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(ctx, viewId));
       
        return result;
       
    }
View Full Code Here

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

        /*
         * Make sure the library contracts get setup as well.
         */
        ViewHandler viewHandler = context.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(context, viewId);
        context.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(context, viewId));
       
        return result;
    }

    /**
 
View Full Code Here

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

        UIViewRoot result = super.createView(ctx, viewId);
        ViewHandler viewHandler = ctx.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(ctx, viewId);

        ctx.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(ctx, viewId));
       
        return result;
       
    }
View Full Code Here

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

        /*
         * Make sure the library contracts get setup as well.
         */
        ViewHandler viewHandler = context.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(context, viewId);
        context.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(context, viewId));

        return result;
    }

    /**
 
View Full Code Here

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

        UIViewRoot root = super.restoreView(context, viewId);
       
        ViewHandler viewHandler = context.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(context, viewId);
        context.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(context, viewId));      
       
        StateContext stateCtx = StateContext.getStateContext(context);
        stateCtx.startTrackViewModifications(context, root);
       
        return root;
View Full Code Here

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

        UIViewRoot result = super.createView(ctx, viewId);
        ViewHandler viewHandler = ctx.getApplication().getViewHandler();
        ViewDeclarationLanguage vdl = viewHandler.getViewDeclarationLanguage(ctx, viewId);

        ctx.setResourceLibraryContracts(vdl.calculateResourceLibraryContracts(ctx, viewId));
       
        return result;
       
    }
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.