Examples of BookmarkableListenerInterfaceRequestTarget


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

            requestParameters.getInterfaceName(), requestParameters);
        }
        else
        {
          // create a new page
          return new BookmarkableListenerInterfaceRequestTarget(
            requestParameters.getPageMapName(), pageClass, params,
            requestParameters.getComponentPath(), requestParameters.getInterfaceName(),
            requestParameters.getVersionNumber());
        }
      }
View Full Code Here

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

    // if an interface name was set prior to this method or in the
    // above block, process it
    if (requestParameters.getInterfaceName() != null)
    {
      return new BookmarkableListenerInterfaceRequestTarget(
        requestParameters.getPageMapName(), bookmarkablePageClassRef.get(), parameters,
        requestParameters.getComponentPath(), requestParameters.getInterfaceName(),
        requestParameters.getVersionNumber());
    }
    // otherwise process as a normal bookmark page request
View Full Code Here

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

    final String interfaceParameter = (String)parameters.remove(WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME);

    if (interfaceParameter != null)
    {
      WebRequestCodingStrategy.addInterfaceParameters(interfaceParameter, requestParameters);
      return new BookmarkableListenerInterfaceRequestTarget(pageMapName,
        bookmarkablePageClass, parameters, requestParameters.getComponentPath(),
        requestParameters.getInterfaceName(), requestParameters.getVersionNumber());
    }
    else
    {
View Full Code Here

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

    // This might be a request to a stateless page, so check for an
    // interface name.
    if (requestParameters.getInterfaceName() != null)
    {
      return new BookmarkableListenerInterfaceRequestTarget(pageMapName,
        bookmarkablePageClassRef.get(), parameters, requestParameters.getComponentPath(),
        requestParameters.getInterfaceName(), requestParameters.getVersionNumber());
    }
    else
    {
View Full Code Here

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

  {
    if (requestTarget instanceof BookmarkableListenerInterfaceRequestTarget &&
      requestTarget.getPageParameters().containsKey(
        WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME))
    {
      BookmarkableListenerInterfaceRequestTarget t = (BookmarkableListenerInterfaceRequestTarget)requestTarget;
      Page page = t.getPage();
      int version = page.getCurrentVersionNumber();
      String componentPath = t.getComponentPath();
      String interfaceName = t.getInterfaceName();
      String pageMapName = t.getPageMapName();

      // add the wicket:interface param to the params.
      // pagemap:(pageid:componenta:componentb:...):version:interface:behavior:urlDepth
      AppendingStringBuffer param = new AppendingStringBuffer(4 + componentPath.length() +
        interfaceName.length());
      if (pageMapName != null)
      {
        param.append(pageMapName);
      }
      param.append(Component.PATH_SEPARATOR);
      // Add path to component
      if (page instanceof WebPage && !"IResourceListener".equals(interfaceName))
      {
        param.append(page.getId());
        Component comp = page.get(Strings.afterFirstPathComponent(componentPath,
          Component.PATH_SEPARATOR));
        param.append(Component.PATH_SEPARATOR);
        param.append(((WebPage)page).getUrlCompressor().getUIDForComponentAndInterface(
          comp, interfaceName));
        interfaceName = null;
      }
      else
      {
        param.append(componentPath);
      }
      param.append(Component.PATH_SEPARATOR);
      if (version != 0)
      {
        param.append(version);
      }
      // Interface
      param.append(Component.PATH_SEPARATOR);
      // Add listener interface
      if (interfaceName != null &&
        !IRedirectListener.INTERFACE.getName().equals(interfaceName))
      {
        param.append(interfaceName);
      }

      // Behavior (none)
      param.append(Component.PATH_SEPARATOR);

      // URL depth (not required)
      param.append(Component.PATH_SEPARATOR);
      t.getPageParameters().put(WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME,
        param.toString());
    }
    return super.encode(requestCycle, requestTarget);
  }
View Full Code Here

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

    // if an interface name was set prior to this method or in the
    // above block, process it
    if (requestParameters.getInterfaceName() != null)
    {
      return new BookmarkableListenerInterfaceRequestTarget(
        requestParameters.getPageMapName(), bookmarkablePageClassRef.get(), parameters,
        requestParameters.getComponentPath(), requestParameters.getInterfaceName(),
        requestParameters.getVersionNumber());
    }
    // otherwise process as a normal bookmark page request
View Full Code Here

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

    // if an interface name was set prior to this method or in the
    // above block, process it
    if (requestParameters.getInterfaceName() != null)
    {
      return new BookmarkableListenerInterfaceRequestTarget(
        requestParameters.getPageMapName(), bookmarkablePageClassRef.get(), parameters,
        requestParameters.getComponentPath(), requestParameters.getInterfaceName(),
        requestParameters.getVersionNumber());
    }
    // otherwise process as a normal bookmark page request
View Full Code Here

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

    if (interfaceParameter != null)
    {
      // stateless listener interface
      WebRequestCodingStrategy.addInterfaceParameters(interfaceParameter, requestParameters);
      return new BookmarkableListenerInterfaceRequestTarget(pageMapName, pageClassRef.get(),
        parameters, requestParameters.getComponentPath(),
        requestParameters.getInterfaceName(), requestParameters.getVersionNumber());
    }
    else if (pageId == null)
    {
View Full Code Here

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

          // @see https://issues.apache.org/jira/browse/WICKET-1627
          pageParameters.add(key, value);
        }
      }

      target = new BookmarkableListenerInterfaceRequestTarget(page.getPageMapName(),
        page.getClass(), pageParameters, component, listener);
      return encodeUrlFor(target);
    }
    else
    {
View Full Code Here

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

          // pageParameters.add(encodeQueryStringItem(key), encodeQueryStringItem(value));
          pageParameters.add(key, value);
        }
      }

      target = new BookmarkableListenerInterfaceRequestTarget(page.getPageMapName(),
        page.getClass(), pageParameters, component, listener);
      return encodeUrlFor(target);
    }
    else
    {
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.