Examples of ListenerInterfaceRequestHandler


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

  private String urlForBehavior(Behavior behaviorUnderTest)
  {
    final int index = page.container.getBehaviorId(behaviorUnderTest);
    final IPageAndComponentProvider provider = new PageAndComponentProvider(page,
      page.container);
    final IRequestHandler handler = new ListenerInterfaceRequestHandler(provider,
      IBehaviorListener.INTERFACE, index);

    return tester.urlFor(handler).toString();
  }
View Full Code Here

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

   */
  public void executeListener(final Component component, final 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
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.