Package org.apache.wicket.core.request.handler

Examples of org.apache.wicket.core.request.handler.IPageRequestHandler


      // Ignore if an exception and a redirect happened in between (e.g.
      // RestartResponseAtInterceptPageException)
      IRequestHandler activeHandler = getRequestCycle().getActiveRequestHandler();
      if (activeHandler instanceof IPageRequestHandler)
      {
        IPageRequestHandler h = (IPageRequestHandler)activeHandler;
        if (h.getPage() == this)
        {
          validateHeaders();
        }
      }
    }
View Full Code Here


      handler = requestCycle.getRequestHandlerScheduledAfterCurrent();
    }

    if (handler instanceof IPageRequestHandler)
    {
      IPageRequestHandler pageRequestHandler = (IPageRequestHandler)handler;
      return (Page)pageRequestHandler.getPage();
    }
    return null;
  }
View Full Code Here

    {
      super.onAfterRender();

      RequestCycle cycle = getRequestCycle();

      IPageRequestHandler firstHandler = PageRequestHandlerTracker.getFirstHandler(cycle);
      assertEquals(PageA.class, firstHandler.getPageClass());

      IPageRequestHandler lastHandler = PageRequestHandlerTracker.getLastHandler(cycle);
      assertEquals(PageB.class, lastHandler.getPageClass());
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.core.request.handler.IPageRequestHandler

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.