Package org.apache.wicket.request.handler

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


    @Override
    public void onComponentTag(Component component, ComponentTag tag)
    {
      super.onComponentTag(component, tag);
      int index = component.getBehaviorId(this);
      IRequestHandler handler = new ListenerInterfaceRequestHandler(
        new PageAndComponentProvider(component.getPage(), component),
        IBehaviorListener.INTERFACE, index);
      statefullUrl = component.getRequestCycle().mapUrlFor(handler).toString();
    }
View Full Code Here


       * label.
       */
      @Override
      protected String getOnClickScript(CharSequence url)
      {
        IRequestHandler handler = new ListenerInterfaceRequestHandler(
          new PageAndComponentProvider(getPage(), this), ILinkListener.INTERFACE);
        Url componentUrl = RequestCycle.get().mapUrlFor(handler);
        componentUrl.addQueryParameter("anticache", Math.random());
        return new AppendingStringBuffer("new Ajax.Updater('counter', '").append(
          componentUrl)
View Full Code Here

    {
      handler = new BookmarkableListenerInterfaceRequestHandler(provider, listener, id);
    }
    else
    {
      handler = new ListenerInterfaceRequestHandler(provider, listener, id);
    }
    return getRequestCycle().urlFor(handler);
  }
View Full Code Here

    {
      handler = new BookmarkableListenerInterfaceRequestHandler(provider, listener);
    }
    else
    {
      handler = new ListenerInterfaceRequestHandler(provider, listener);
    }
    return getRequestCycle().urlFor(handler);
  }
View Full Code Here

  {
    Args.notNull(component, "component");

    // there are two ways to do this. RequestCycle could be forced to call the handler
    // directly but constructing and parsing the URL increases the chance of triggering bugs
    IRequestHandler handler = new ListenerInterfaceRequestHandler(new PageAndComponentProvider(
      component.getPage(), component), listener);

    Url url = urlFor(handler);
    MockHttpServletRequest request = new MockHttpServletRequest(application, httpSession,
      servletContext);
View Full Code Here

  {
    Args.notNull(component, "component");

    // there are two ways to do this. RequestCycle could be forced to call the handler
    // directly but constructing and parsing the URL increases the chance of triggering bugs
    IRequestHandler handler = new ListenerInterfaceRequestHandler(new PageAndComponentProvider(
      component.getPage(), component), listener);

    processRequest(handler);
  }
View Full Code Here

   */
  public void executeListener(Component component, RequestListenerInterface listener)
  {
    // there are two ways to do this. RequestCycle could be forced to call the handler
    // directly but constructing and parsing the URL increases the chance of triggering bugs
    IRequestHandler handler = new ListenerInterfaceRequestHandler(new PageAndComponentProvider(
      component.getPage(), component), listener);

    Url url = urlFor(handler);
    MockHttpServletRequest request = new MockHttpServletRequest(application, hsession,
      servletContext);
View Full Code Here

    {
      handler = new BookmarkableListenerInterfaceRequestHandler(provider, listener, index);
    }
    else
    {
      handler = new ListenerInterfaceRequestHandler(provider, listener, index);
    }
    return getRequestCycle().urlFor(handler);
  }
View Full Code Here

    {
      handler = new BookmarkableListenerInterfaceRequestHandler(provider, listener);
    }
    else
    {
      handler = new ListenerInterfaceRequestHandler(provider, listener);
    }
    return getRequestCycle().urlFor(handler);
  }
View Full Code Here

      PageAndComponentProvider provider = new PageAndComponentProvider(pageInfo.getPageId(),
        pageClass, pageParameters, renderCount, componentInfo.getComponentPath());

      provider.setPageSource(getContext());

      return new ListenerInterfaceRequestHandler(provider, listenerInterface,
        componentInfo.getBehaviorIndex());
    }
    else
    {
      if (logger.isWarnEnabled())
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.handler.ListenerInterfaceRequestHandler

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.