Examples of StaleSessionException


Examples of net.sf.tapestry.StaleSessionException

                new MyException("this is an intentional runtime exception"));
    }

    public void forceStaleSession(IRequestCycle cycle) throws RequestCycleException {
        log.warn("throwing stale session exception");
        throw new StaleSessionException("The session has expired", getPage());
    }
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (stateful.equals(STATEFUL_ON) && direct.isStateful())
        {
            HttpSession session = cycle.getRequestContext().getSession();

            if (session == null || session.isNew())
                throw new StaleSessionException(
                    Tapestry.format(
                        "DirectService.stale-session-exception",
                        direct.getExtendedId()),
                    direct.getPage());
        }
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (stateful.equals(STATEFUL_ON) && action.getRequiresSession())
        {
            HttpSession session = cycle.getRequestContext().getSession();

            if (session == null || session.isNew())
                throw new StaleSessionException();
        }

        cycle.rewindPage(targetActionId, action);

        // During the rewind, a component may change the page.  This will take
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (activeSession && direct.isStateful())
        {
            WebSession session = _request.getSession(false);

            if (session == null || session.isNew())
                throw new StaleSessionException(EngineMessages.requestStateSession(direct),
                        componentPage);
        }
       
        Object[] parameters = _linkFactory.extractListenerParameters(cycle);
       
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (activeSession && direct.isStateful())
        {
            WebSession session = _request.getSession(false);

            if (session == null || session.isNew())
                throw new StaleSessionException(EngineMessages.requestStateSession(direct),
                        componentPage);
        }

        Object[] parameters = _linkFactory.extractListenerParameters(cycle);
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (activeSession && direct.isStateful())
        {
            WebSession session = _request.getSession(false);

            if (session == null || session.isNew())
                throw new StaleSessionException(EngineMessages.requestStateSession(direct),
                        componentPage);
        }

        Object[] parameters = _linkFactory.extractListenerParameters(cycle);
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (activeSession && action.getRequiresSession())
        {
            WebSession session = _request.getSession(false);

            if (session == null || session.isNew())
                throw new StaleSessionException(EngineMessages.requestStateSession(component),
                        componentPage);

        }

        cycle.rewindPage(actionId, action);
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        StaleSessionExceptionPresenterImpl presenter = new StaleSessionExceptionPresenterImpl();

        presenter.setPageName("StaleSession");
        presenter.setResponseRenderer(renderer);

        presenter.presentStaleSessionException(cycle, new StaleSessionException());

        verifyControls();
    }
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        verifyControls();
    }

    public void testFailure() throws Exception
    {
        StaleSessionException cause = new StaleSessionException();
        Throwable renderCause = new ApplicationRuntimeException("Some failure.");

        IPage page = newPage();

        IRequestCycle cycle = newCycle("StaleSession", page);
View Full Code Here

Examples of org.apache.tapestry.StaleSessionException

        if (activeSession && direct.isStateful())
        {
            HttpSession session = _request.getSession();

            if (session == null || session.isNew())
                throw new StaleSessionException(EngineMessages.requestStateSession(direct),
                        componentPage);
        }

        Object[] parameters = _linkFactory.extractServiceParameters(cycle);
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.