Package org.apache.wicket.request.handler.RenderPageRequestHandler

Examples of org.apache.wicket.request.handler.RenderPageRequestHandler.RedirectPolicy


     */
    @Override
    public IRequestHandler onException(RequestCycle cycle, Exception error)
    {
        Class<? extends Page> respondWithPage = null;
        RedirectPolicy redirectPolicy = RedirectPolicy.NEVER_REDIRECT;
       
        if(error instanceof AuthorizationException)
        {
            AuthorizationException ae = (AuthorizationException) error;
            if(authenticationNeeded(ae))
View Full Code Here


     * a redirect. However, if the request is an ajax one, force a redirect, as that is the
     * only way to make the browser show the error page.
     */
    private IRequestHandler createErrorPageHandler(RequestCycle cycle, Class<? extends Page> page)
    {
        RedirectPolicy redirectPolicy = RedirectPolicy.NEVER_REDIRECT;
       
        if(cycle.getRequest() instanceof WebRequest && ((WebRequest) cycle.getRequest()).isAjax())
        {
            redirectPolicy = RedirectPolicy.ALWAYS_REDIRECT;
        }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.handler.RenderPageRequestHandler.RedirectPolicy

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.