Package org.apache.wicket.request.target.component

Examples of org.apache.wicket.request.target.component.IBookmarkablePageRequestTarget


      throw new IllegalArgumentException("This encoder can only be used with " +
        "instances of " + IBookmarkablePageRequestTarget.class.getName());
    }
    final AppendingStringBuffer url = new AppendingStringBuffer(40);
    url.append(getMountPath());
    final IBookmarkablePageRequestTarget target = (IBookmarkablePageRequestTarget)requestTarget;

    PageParameters pageParameters = target.getPageParameters();
    String pagemap = pageMapName != null ? pageMapName : target.getPageMapName();
    if (pagemap != null)
    {
      if (pageParameters == null)
      {
        pageParameters = new PageParameters();
View Full Code Here


   */
  public boolean matches(IRequestTarget requestTarget)
  {
    if (requestTarget instanceof IBookmarkablePageRequestTarget)
    {
      IBookmarkablePageRequestTarget target = (IBookmarkablePageRequestTarget)requestTarget;
      if (((Class)bookmarkablePageClassRef.get()).equals(target.getPageClass()))
      {
        if (pageMapName == null)
        {
          return true;
        }
        else
        {
          return pageMapName.equals(target.getPageMapName());
        }
      }
    }
    return false;
  }
View Full Code Here

        }
        else if (target instanceof IBookmarkablePageRequestTarget)
        {
          // create a new request cycle for the newPage call
          createRequestCycle();
          IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target;
          Class pageClass = pageClassRequestTarget.getPageClass();
          PageParameters parameters = pageClassRequestTarget.getPageParameters();
          if (parameters == null || parameters.size() == 0)
          {
            newLastRenderedPage = application.getSessionSettings()
              .getPageFactory()
              .newPage(pageClass);
View Full Code Here

      sb.append(pageRequestTarget.getPage().getId());
      sb.append(")]");
    }
    else if (target instanceof IBookmarkablePageRequestTarget)
    {
      IBookmarkablePageRequestTarget pageRequestTarget = (IBookmarkablePageRequestTarget)target;
      sb.append("BookmarkablePage[");
      sb.append(pageRequestTarget.getPageClass().getName());
      sb.append("(").append(pageRequestTarget.getPageParameters()).append(")");
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
View Full Code Here

        }
        else if (target instanceof IBookmarkablePageRequestTarget)
        {
          // create a new request cycle for the newPage call
          createRequestCycle();
          IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target;
          Class<? extends Page> pageClass = pageClassRequestTarget.getPageClass();
          PageParameters parameters = pageClassRequestTarget.getPageParameters();
          if (parameters == null || parameters.size() == 0)
          {
            newLastRenderedPage = application.getSessionSettings()
              .getPageFactory()
              .newPage(pageClass);
View Full Code Here

        // a different page map so that we don't intermingle the history
        // of those windows
        CharSequence url = null;
        if (target instanceof IBookmarkablePageRequestTarget)
        {
          IBookmarkablePageRequestTarget current = (IBookmarkablePageRequestTarget)target;
          BookmarkablePageRequestTarget redirect = new BookmarkablePageRequestTarget(
            session.createAutoPageMapName(), current.getPageClass(),
            current.getPageParameters());
          url = cycle.urlFor(redirect);
        }
        else
        {
          url = webPage.urlFor(INewBrowserWindowListener.INTERFACE);
View Full Code Here

        }
        else if (target instanceof IBookmarkablePageRequestTarget)
        {
          // create a new request cycle for the newPage call
          createRequestCycle();
          IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target;
          Class<? extends Page> pageClass = pageClassRequestTarget.getPageClass();
          PageParameters parameters = pageClassRequestTarget.getPageParameters();
          if (parameters == null || parameters.size() == 0)
          {
            newLastRenderedPage = application.getSessionSettings()
              .getPageFactory()
              .newPage(pageClass);
View Full Code Here

      sb.append(pageRequestTarget.getPage().getId());
      sb.append(")]");
    }
    else if (target instanceof IBookmarkablePageRequestTarget)
    {
      IBookmarkablePageRequestTarget pageRequestTarget = (IBookmarkablePageRequestTarget)target;
      sb.append("BookmarkablePage[");
      sb.append(pageRequestTarget.getPageClass().getName());
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
View Full Code Here

        }
        else if (target instanceof IBookmarkablePageRequestTarget)
        {
          // create a new request cycle for the newPage call
          createRequestCycle();
          IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target;
          Class pageClass = pageClassRequestTarget.getPageClass();
          PageParameters parameters = pageClassRequestTarget.getPageParameters();
          if (parameters == null || parameters.size() == 0)
          {
            newLastRenderedPage = new DefaultPageFactory().newPage(pageClass);
          }
          else
View Full Code Here

        // a different page map so that we don't intermangle the history
        // of those windows
        CharSequence url = null;
        if (target instanceof IBookmarkablePageRequestTarget)
        {
          IBookmarkablePageRequestTarget current = (IBookmarkablePageRequestTarget)target;
          BookmarkablePageRequestTarget redirect = new BookmarkablePageRequestTarget(
              session.createAutoPageMapName(), current.getPageClass(), current
                  .getPageParameters());
          url = cycle.urlFor(redirect);
        }
        else
        {
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.target.component.IBookmarkablePageRequestTarget

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.