Package org.apache.tapestry

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


        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

        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

        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

        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

        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

        StaleSessionExceptionPresenterImpl presenter = new StaleSessionExceptionPresenterImpl();

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

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

        verifyControls();
    }
View Full Code Here

        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

        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

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

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

        }

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

TOP

Related Classes of org.apache.tapestry.StaleSessionException

Copyright © 2018 www.massapicom. 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.