Package javax.faces.application

Examples of javax.faces.application.StateManager.saveSerializedView()


                }
            } finally {
                restoreWriter(context, originalWriter);
            }
        } else {
            StateManager.SerializedView view = stateManager.saveSerializedView(context);

            boolean myFaces = Environment.isMyFaces();
            boolean richFaces = Environment.isRichFacesStateManager(stateManager);
            boolean facelets = Environment.isFacelets(context);
View Full Code Here


                // See if we can find any trace of the saved state.
                // If so, we need to perform token replacement
                if (end >= 0)
                {
                    // save state
                    Object stateObj = stateMgr.saveSerializedView(context);
                    String stateStr;
                    if (stateObj == null)
                    {
                        stateStr = null;
                    }
View Full Code Here

        UIOutput output = new UIOutput();
        output.setValue("foo");
        output.setId("foo");

        stateManager.writeState(facesContext, stateManager.saveSerializedView(facesContext));

        UIViewRoot restoredViewRoot = stateManager.restoreView(facesContext, "/root", RenderKitFactory.HTML_BASIC_RENDER_KIT);
        assertNotNull("restored view root should not be null", restoredViewRoot);
    }
View Full Code Here

    {
        setViewRoot("/index.jsp");
        // simulate that this is the 2nd request for this page
        // so that we would go through all 6 phases
        StateManager stateManager = facesContext.getApplication().getStateManager();
        stateManager.saveSerializedView(facesContext);
        InstrumentingPhaseListener listener = new InstrumentingPhaseListener();
        listener.setEventPhaseId(PhaseId.RESTORE_VIEW);
        listener.setBefore(true);
        listener.setRender(true);
        lifecycle.addPhaseListener(listener);
View Full Code Here

    {
        setViewRoot("/index.jsp");
        // simulate that this is the 2nd request for this page
        // so that we would go through all 6 phases
        StateManager stateManager = facesContext.getApplication().getStateManager();
        stateManager.saveSerializedView(facesContext);
        InstrumentingPhaseListener listener = new InstrumentingPhaseListener();
        listener.setEventPhaseId(PhaseId.RESTORE_VIEW);
        listener.setAfter(true);
        listener.setRender(true);
        lifecycle.addPhaseListener(listener);
View Full Code Here

    {
        setViewRoot("/index.jsp");
        // simulate that this is the 2nd request for this page
        // so that we would go through all 6 phases
        StateManager stateManager = facesContext.getApplication().getStateManager();
        stateManager.saveSerializedView(facesContext);
        InstrumentingPhaseListener listener = new InstrumentingPhaseListener();
        listener.setEventPhaseId(PhaseId.RESTORE_VIEW);
        listener.setBefore(true);
        listener.setComplete(true);
        lifecycle.addPhaseListener(listener);
View Full Code Here

    {
        setViewRoot("/index.jsp");
        // simulate that this is the 2nd request for this page
        // so that we would go through all 6 phases
        StateManager stateManager = facesContext.getApplication().getStateManager();
        stateManager.saveSerializedView(facesContext);
        InstrumentingPhaseListener listener = new InstrumentingPhaseListener();
        listener.setEventPhaseId(PhaseId.RESTORE_VIEW);
        listener.setAfter(true);
        listener.setBefore(false);
        listener.setComplete(true);
View Full Code Here

    {
        setViewRoot("/index.jsp");
        // simulate that this is the 2nd request for this page
        // so that we would go through all 6 phases
        StateManager stateManager = facesContext.getApplication().getStateManager();
        stateManager.saveSerializedView(facesContext);
        InstrumentingPhaseListener listener = new InstrumentingPhaseListener();
        listener.setEventPhaseId(PhaseId.APPLY_REQUEST_VALUES);
        listener.setBefore(true);
        listener.setRender(true);
        lifecycle.addPhaseListener(listener);
View Full Code Here

    {
        setViewRoot("/index.jsp");
        // simulate that this is the 2nd request for this page
        // so that we would go through all 6 phases
        StateManager stateManager = facesContext.getApplication().getStateManager();
        stateManager.saveSerializedView(facesContext);
        InstrumentingPhaseListener listener = new InstrumentingPhaseListener();
        listener.setEventPhaseId(PhaseId.APPLY_REQUEST_VALUES);
        listener.setAfter(true);
        listener.setRender(true);
        lifecycle.addPhaseListener(listener);
View Full Code Here

    {
        setViewRoot("/index.jsp");
        // simulate that this is the 2nd request for this page
        // so that we would go through all 6 phases
        StateManager stateManager = facesContext.getApplication().getStateManager();
        stateManager.saveSerializedView(facesContext);
        InstrumentingPhaseListener listener = new InstrumentingPhaseListener();
        listener.setEventPhaseId(PhaseId.APPLY_REQUEST_VALUES);
        listener.setBefore(true);
        listener.setComplete(true);
        lifecycle.addPhaseListener(listener);
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.