Package org.apache.wicket.protocol.http

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


      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

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

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

          return (DragSource)behavior;
        }
      }
    }

    throw new PageExpiredException("No drag source found " + path);
  }
View Full Code Here

    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

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

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

    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
    {
      return new RenderPageRequestHandler(provider);
View Full Code Here

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

   * @deprecated Use {@link #onError(Exception, String)}
   */
  @Deprecated
  protected String onError(final Exception ex)
  {
    throw new PageExpiredException("Invalid URL", ex);
  }
View Full Code Here

    final Component component = getTarget();
    final String id = getRequestParameters().getBehaviorId();
    if (id == null)
    {
      // wicket-2107
      throw new PageExpiredException(
        "Parameter behaviorId was not provided: unable to locate listener. Component: " +
          component.toString());
    }

    final int idAsInt = Integer.parseInt(id);
    final List<IBehavior> behaviors = component.getBehaviorsRawList();
    IBehaviorListener behaviorListener = null;

    if (behaviors.size() > idAsInt)
    {
      IBehavior behavior = behaviors.get(idAsInt);
      if (behavior instanceof IBehaviorListener)
      {
        behaviorListener = (IBehaviorListener)behavior;
      }
    }

    if (behaviorListener == null)
    {
      // wicket-2107
      throw new PageExpiredException("No behavior listener found with behaviorId " + id +
        "; Component: " + component.toString());
    }

    // Invoke the interface method
    behaviorListener.onRequest();
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.PageExpiredException

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.