Package org.apache.tapestry.callback

Examples of org.apache.tapestry.callback.ICallback


        visit.setUser(person);

        // After logging in, go to the Home page, unless otherwise
        // specified.

        ICallback callback = getCallback();

        if (callback == null)
            getMyLibrary().activate();
        else
            callback.performCallback(cycle);

        // TODO: Set max age of cookie once TAPESTRY-438 is fixed.

        getCookieSource().writeCookieValue(COOKIE_NAME, email);
View Full Code Here


        visit.setUser(person);

        // After logging in, go to the MyLibrary page, unless otherwise
        // specified.

        ICallback callback = getCallback();

        if (callback == null)
            cycle.activate("Home");
        else
            callback.performCallback(cycle);

        // I've found that failing to set a maximum age and a path means that
        // the browser (IE 5.0 anyway) quietly drops the cookie.

        IEngine engine = getEngine();
View Full Code Here

        Visit visit = (Visit) cycle.getEngine().getVisit();

        if (visit != null && visit.isUserLoggedIn())
            return;

        ICallback callback = new PageCallback(getPage().getPageName());
        Login loginPage = (Login) cycle.getPage("Login");
        loginPage.setCallback(callback);
        cycle.activate(loginPage);
    }
View Full Code Here

    public void linkClicked(IRequestCycle cycle)
    {
        setVisited(true);

        ICallback callback = getCallback();

        setCallback(null);

        callback.performCallback(cycle);
    }
View Full Code Here

        Guard guard = (Guard) cycle.getPage("Guard");

        if (!guard.isVisited())
        {
            ICallback callback = new DirectCallback((IDirect) getComponent("link"), parameters);
            guard.setCallback(callback);
            cycle.activate(guard);
            return;
        }
View Full Code Here

    {
        Guard guard = (Guard) getRequestCycle().getPage("Guard");

        if (!guard.isVisited())
        {
            ICallback callback = new PageCallback(this);
            guard.setCallback(callback);

            throw new PageRedirectException(guard);
        }
    }
View Full Code Here

        Guard guard = (Guard) cycle.getPage("Guard");

        if (!guard.isVisited())
        {
            ICallback callback = new DirectCallback((IDirect) getComponent("link"), parameters);
            guard.setCallback(callback);
            cycle.activate(guard);
            return;
        }
View Full Code Here

        Visit visit = (Visit) cycle.getEngine().getVisit();

        if (visit != null && visit.isUserLoggedIn())
            return;

        ICallback callback = new PageCallback(getPage().getPageName());
        Login loginPage = (Login) cycle.getPage("Login");
        loginPage.setCallback(callback);
        cycle.activate(loginPage);
    }
View Full Code Here

        visit.setUser(person);

        // After logging in, go to the MyLibrary page, unless otherwise
        // specified.

        ICallback callback = getCallback();

        if (callback == null)
            cycle.activate("Home");
        else
            callback.performCallback(cycle);

        // I've found that failing to set a maximum age and a path means that
        // the browser (IE 5.0 anyway) quietly drops the cookie.

        IEngine engine = getEngine();
View Full Code Here

        visit.setUser(person);

        // After logging in, go to the MyLibrary page, unless otherwise
        // specified.

        ICallback callback = getCallback();

        if (callback == null)
            cycle.activate("Home");
        else
            callback.performCallback(cycle);

        getCookieSource().writeCookieValue(COOKIE_NAME, email);

        // TODO: Set max age of cookie once TAPESTRY-438 is fixed.
View Full Code Here

TOP

Related Classes of org.apache.tapestry.callback.ICallback

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.