Package org.apache.tapestry

Examples of org.apache.tapestry.PageRedirectException


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

            };

        return _converter;
View Full Code Here


        {
            MyLibrary page = getMyLibrary();

            page.activate();

            throw new PageRedirectException(page);
        }

        setBooksModel(model);
    }
View Full Code Here

        Publisher publisher = (Publisher) map.getValue();

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

        setPublisher(publisher);
    }
View Full Code Here

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

            page.activate(cycle);

            throw new PageRedirectException(page);
        }

        setBooksModel(model);
    }
View Full Code Here

        {
            Login login = (Login) cycle.getPage("Login");

            login.setCallback(new PageCallback(this));

            throw new PageRedirectException(login);
        }

        if (!visit.getUser(cycle).isAdmin())
        {
            VirtualLibraryEngine vengine = (VirtualLibraryEngine) getEngine();

            vengine.presentError("That function is restricted to adminstrators.", cycle);

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

        Login login = (Login) getRequestCycle().getPage("Login");

        login.setCallback(new ActivateCallback(this));

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

        Login login = (Login) getRequestCycle().getPage("Login");

        login.setCallback(new PageCallback(this));

        throw new PageRedirectException(login);
    }
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

     */
    public void pageValidate(PageEvent event)
    {
        String pageName = getTargetPage();

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

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

            throw new PageRedirectException(guard);
        }
    }
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.