Package org.apache.wicket.request.handler

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


      if (page == null)
      {
        throw new WicketRuntimeException("Error creating page for modal dialog.");
      }

      IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
      appendAssignment(buffer, "settings.src", RequestCycle.get().urlFor(handler));
    }
    else
    {
      buffer.append("settings.element=element;\n");
View Full Code Here


   *
   * @param interceptPage
   */
  public RestartResponseAtInterceptPageException(Page interceptPage)
  {
    super(new RenderPageRequestHandler(new PageProvider(interceptPage),
      RedirectPolicy.ALWAYS_REDIRECT));
    InterceptData.set();
  }
View Full Code Here

   * @param parameters
   */
  public RestartResponseAtInterceptPageException(Class<? extends Page> interceptPageClass,
    PageParameters parameters)
  {
    super(new RenderPageRequestHandler(new PageProvider(interceptPageClass, parameters),
      RedirectPolicy.ALWAYS_REDIRECT));
    InterceptData.set();
  }
View Full Code Here

      if (markupIdToComponent.values().contains(page))
      {
        // the page itself has been added to the request target, we simply issue a redirect
        // back to the page
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
        final String url = rc.urlFor(handler).toString();
        response.sendRedirect(url);
        return;
      }
View Full Code Here

  public Page startPage(IPageProvider pageProvider)
  {
    startComponent = null;
    request = new MockHttpServletRequest(application, hsession, servletContext);
    request.setURL(request.getContextPath() + request.getServletPath() + "/");
    IRequestHandler handler = new RenderPageRequestHandler(pageProvider);
    processRequest(request, handler);
    return getLastRenderedPage();
  }
View Full Code Here

   *
   * @param page
   */
  public void setResponsePage(IRequestablePage page)
  {
    scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(new PageProvider(page),
      RenderPageRequestHandler.RedirectPolicy.AUTO_REDIRECT));
  }
View Full Code Here

   * @param pageClass
   */
  public void setResponsePage(Class<? extends IRequestablePage> pageClass)
  {
    IPageProvider provider = new PageProvider(pageClass, null);
    scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(provider,
      RenderPageRequestHandler.RedirectPolicy.AUTO_REDIRECT));
  }
View Full Code Here

   */
  public void setResponsePage(Class<? extends IRequestablePage> pageClass,
    PageParameters parameters)
  {
    IPageProvider provider = new PageProvider(pageClass, parameters);
    scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(provider,
      RenderPageRequestHandler.RedirectPolicy.AUTO_REDIRECT));
  }
View Full Code Here

  private IRequestHandler processBookmarkable(Class<? extends IRequestablePage> pageClass,
    PageParameters pageParameters)
  {
    PageProvider provider = new PageProvider(pageClass, pageParameters);
    provider.setPageSource(getContext());
    return new RenderPageRequestHandler(provider);
  }
View Full Code Here

    Integer renderCount)
  {
    PageProvider provider = new PageProvider(pageInfo.getPageId(), pageClass, pageParameters,
      renderCount);
    provider.setPageSource(getContext());
    return new RenderPageRequestHandler(provider);
  }
View Full Code Here

TOP

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

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.