Examples of IRequestHandler


Examples of org.apache.wicket.request.IRequestHandler

  public ResourceReference startResourceReference(final ResourceReference reference,
    final PageParameters pageParameters)
  {
    // prepare request
    request.setURL(request.getContextPath() + request.getServletPath() + "/");
    IRequestHandler handler = new ResourceReferenceRequestHandler(reference, pageParameters);

    // execute request
    processRequest(request, handler);

    // the reference processed
View Full Code Here

Examples of org.apache.wicket.request.IRequestHandler

  {
    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

Examples of org.apache.wicket.request.IRequestHandler

  {
    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

Examples of org.apache.wicket.request.IRequestHandler

    @Override
    public IRequestHandler mapRequest(Request request)
    {
      if (forcedHandler != null)
      {
        IRequestHandler handler = forcedHandler;
        forcedHandler = null;
        return handler;
      }
      else
      {
View Full Code Here

Examples of org.apache.wicket.request.IRequestHandler

    if (responseObject.containsPage())
    {
      // the page itself has been added to the request target, we simply issue a redirect
      // back to the page
      IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
      final String url = rc.urlFor(handler).toString();
      response.sendRedirect(url);
      return;
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestHandler

  public void onBeforeRender(Component component)
  {
    if (component instanceof Page)
    {
      Page page = (Page)component;
      IRequestHandler activeRequestHandler = page.getRequestCycle().getActiveRequestHandler();
      autoEndIfNecessary(page, activeRequestHandler);
      autoBeginIfNecessary(page, activeRequestHandler);
    }
  }
View Full Code Here

Examples of org.apache.wicket.request.IRequestHandler

   */
  public final CharSequence urlFor(final Behavior behaviour,
    final RequestListenerInterface listener, final PageParameters parameters)
  {
    int id = getBehaviorId(behaviour);
    IRequestHandler handler = createRequestHandler(listener, parameters, id);
    return getRequestCycle().urlFor(handler);
  }
View Full Code Here

Examples of org.apache.wicket.request.IRequestHandler

   * @return The URL
   */
  public final CharSequence urlFor(final RequestListenerInterface listener,
    final PageParameters parameters)
  {
    IRequestHandler handler = createRequestHandler(listener, parameters, null);
    return getRequestCycle().urlFor(handler);
  }
View Full Code Here

Examples of org.apache.wicket.request.IRequestHandler

  {
    // get the page before checking for a scheduled request handler because
    // the page may call setResponsePage in its constructor
    IRequestablePage requestablePage = getPage();

    IRequestHandler scheduled = requestCycle.getRequestHandlerScheduledAfterCurrent();

    if (scheduled != null)
    {
      // no need to render
      return null;
View Full Code Here

Examples of org.apache.wicket.request.IRequestHandler

    // only in development mode validate the headers
    if (getApplication().usesDevelopmentConfig())
    {
      // Ignore if an exception and a redirect happened in between (e.g.
      // RestartResponseAtInterceptPageException)
      IRequestHandler activeHandler = getRequestCycle().getActiveRequestHandler();
      if (activeHandler instanceof IPageRequestHandler)
      {
        IPageRequestHandler h = (IPageRequestHandler)activeHandler;
        if (h.getPage() == this)
        {
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.