Package org.apache.tapestry

Examples of org.apache.tapestry.PageRedirectException


            IRequestCycle cycle = getRequestCycle();
            IActivate page = (IActivate) cycle.getPage("MyLibrary");

            page.activate(cycle);

            throw new PageRedirectException(page);
        }

        setBooksModel(model);
    }
View Full Code Here


        Person user = (Person) map.getValue();

        if (user == null)
        {
            setError(getMessage("out-of-date"));
            throw new PageRedirectException(this);
        }

        setUser(user);
    }
View Full Code Here

        trainGetListener(component, map, listener);

        listener.actionTriggered(sourceComponent, cycle);

        Throwable t = new PageRedirectException("TargetPage");
        getControl(listener).setThrowable(t);

        replayControls();

        ListenerMethodBinding b = new ListenerMethodBinding(component, "foo", "param", vc, l);
View Full Code Here

        Login login = getLogin();

        login.setCallback(new PageCallback(this));

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

        {
            Login login = getLogin();

            login.setCallback(new PageCallback(this));

            throw new PageRedirectException(login);
        }

        IRequestCycle cycle = getRequestCycle();

        if (!getVisitState().getUser().isAdmin())
        {
            getErrorPresenter().presentError(
                    "That function is restricted to administrators.", cycle);

            throw new PageRedirectException(cycle.getPage());
        }
    }
View Full Code Here

            @Override
            protected Object provideMissingValue(Object key)
            {
                getValidationDelegate().record(null, outOfDate());
                throw new PageRedirectException(EditPublishers.this);
            }

        };

        return _converter;
View Full Code Here

        trainGetListener(component, map, listener);

        listener.actionTriggered(sourceComponent, cycle);
       
        Throwable t = new PageRedirectException("TargetPage");
        expectLastCall().andThrow(t);
       
        replay();

        ListenerMethodBinding b = new ListenerMethodBinding("param", vc, l, component, "foo");
View Full Code Here

        trainGetListener(component, map, listener);

        listener.actionTriggered(sourceComponent, cycle);

        Throwable t = new PageRedirectException("TargetPage");
        setThrowable(listener, t);

        replayControls();

        ListenerMethodBinding b = new ListenerMethodBinding("param", vc, l, component, "foo");
View Full Code Here

        trainGetListener(component, map, listener);

        listener.actionTriggered(sourceComponent, cycle);

        Throwable t = new PageRedirectException("TargetPage");
        setThrowable(listener, t);

        replayControls();

        ListenerMethodBinding b = new ListenerMethodBinding(component, "foo", "param", vc, l);
View Full Code Here

                @Override
                protected Object provideMissingValue(Object key)
                {
                    getValidationDelegate().record(null, outOfDate());
                    throw new PageRedirectException(EditPublishers.this);
                }

            };

        return _converter;
View Full Code Here

TOP

Related Classes of org.apache.tapestry.PageRedirectException

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.