Package org.apache.wicket.request.handler

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


    if (isProcessingAjaxRequest())
    {
      redirect = RenderPageRequestHandler.RedirectPolicy.ALWAYS_REDIRECT;
    }

    return new RenderPageRequestHandler(pageProvider, redirect);
  }
View Full Code Here


            // we make an excepion if the homepage itself was mounted, see WICKET-1898
            if (!pageClass.equals(application.getHomePage()))
            {
              // WICKET-5094 only enforce mount if page is mounted
              Url reverseUrl = application.getRootRequestMapper().mapHandler(
                new RenderPageRequestHandler(new PageProvider(pageClass)));
              if (!matches(reverseUrl))
              {
                return null;
              }
            }
View Full Code Here

   *            the redirect policy to use
   */
  public RestartResponseException(final IPageProvider pageProvider,
    final RedirectPolicy redirectPolicy)
  {
    super(new RenderPageRequestHandler(pageProvider, redirectPolicy));
  }
View Full Code Here

  public BodyFrame()
  {
    // create a new page instance, passing this 'master page' as an argument
    LeftFrame leftFrame = new LeftFrame(this);
    // get the url to that page
    IRequestHandler leftFrameHandler = new RenderPageRequestHandler(new PageProvider(leftFrame));
    // and create a simple component that modifies it's src attribute to
    // hold the url to that frame
    ExampleFrame leftFrameTag = new ExampleFrame("leftFrame", leftFrameHandler);
    add(leftFrameTag);
View Full Code Here

    if (e instanceof StalePageException)
    {
      // If the page was stale, just rerender it
      // (the url should always be updated by an redirect in that case)
      return new RenderPageRequestHandler(new PageProvider(((StalePageException)e).getPage()));
    }
    else if (e instanceof PageExpiredException)
    {
      return createPageRequestHandler(new PageProvider(Application.get()
        .getApplicationSettings()
View Full Code Here

    if (isProcessingAjaxRequest())
    {
      redirect = RenderPageRequestHandler.RedirectPolicy.ALWAYS_REDIRECT;
    }

    return new RenderPageRequestHandler(pageProvider, redirect);
  }
View Full Code Here

    public IRequestHandler map(Exception e)
    {
      if (Exceptions.findCause(e, TestException.class) != null)
      {
        return new RenderPageRequestHandler(new PageProvider(TestExceptionPage.class));
      }
      return wrapped.map(e);
    }
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

    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

   *
   * @param interceptPage
   */
  public RestartResponseAtInterceptPageException(Page interceptPage)
  {
    super(new RenderPageRequestHandler(new PageProvider(interceptPage),
      RedirectPolicy.AUTO_REDIRECT));
    InterceptData.set();
  }
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.