Examples of PageExpiredException


Examples of org.apache.wicket.protocol.http.PageExpiredException

      }
    }

    if (page == null)
    {
      throw new PageExpiredException(
        "Request cannot be processed. The target page does not exist anymore.");
    }

    final String pageRelativeComponentPath = Strings.afterFirstPathComponent(componentPath,
      Component.PATH_SEPARATOR);
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

   */
  protected IRequestTarget handleExpiredPage(final String pageMapName,
    final Class<? extends Page> pageClass, final int trailingSlashesCount,
    final boolean redirect)
  {
    throw new PageExpiredException(
      "Request cannot be processed. The target page does not exist anymore.");
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

    PageProvider provider = new PageProvider(pageInfo.getPageId(), pageClass, pageParameters,
      renderCount);
    provider.setPageSource(getContext());
    if (provider.isNewPageInstance() && !getRecreateMountedPagesAfterExpiry())
    {
      throw new PageExpiredException(String.format("Bookmarkable page id '%d' has expired.",
        pageInfo.getPageId()));
    }
    else
    {
      PageParameters constructionPageParameters = provider.getPageInstance().getPageParameters();
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

    {
      pageInstance = getPageInstance(pageId, pageClass, pageParameters, renderCount);
    }
    if (pageInstance == null)
    {
      throw new PageExpiredException("Page expired.");
    }
    touchPageInstance(pageInstance);
    return pageInstance;
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

    PageProvider provider = new PageProvider(pageInfo.getPageId(), pageClass, pageParameters,
      renderCount);
    provider.setPageSource(getContext());
    if (provider.isNewPageInstance() && !getRecreateMountedPagesAfterExpiry())
    {
      throw new PageExpiredException(String.format("Bookmarkable page id '%d' has expired.",
        pageInfo.getPageId()));
    }
    else
    {
      PageParameters constructionPageParameters = provider.getPageInstance().getPageParameters();
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

    {
      resolvePageInstance(pageId, pageClass, pageParameters, renderCount);

      if (pageInstance == null)
      {
        throw new PageExpiredException("Page with id '" + pageId + "' has expired.");
      }
    }
    return pageInstance;
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

   * @see RequestCycle#handleException(Exception)
   */
  @Override
  public IRequestHandler handleException(final Exception e)
  {
    PageExpiredException pageExpiredException = Exceptions.findCause(e,
      PageExpiredException.class);
    if (pageExpiredException != null)
    {
      handlePageExpiredException(pageExpiredException);
    }
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

    {
      resolvePageInstance(pageId, pageClass, pageParameters, renderCount);

      if (pageInstance == null)
      {
        throw new PageExpiredException("Page with id '" + pageId + "' has expired.");
      }
    }
    return pageInstance;
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

      renderCount);
    provider.setPageSource(getContext());
    if (provider.isNewPageInstance() &&
      !WebApplication.get().getPageSettings().getRecreateMountedPagesAfterExpiry())
    {
      throw new PageExpiredException(String.format("Bookmarkable page id '%d' has expired.",
        pageInfo.getPageId()));
    }
    else
    {
      return new RenderPageRequestHandler(provider);
View Full Code Here

Examples of org.apache.wicket.protocol.http.PageExpiredException

    {
      resolvePageInstance(pageId, pageClass, pageParameters, renderCount);

      if (pageInstance == null)
      {
        throw new PageExpiredException("Page with id '" + pageId + "' has expired.");
      }
    }
    return pageInstance;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.