Examples of urlFor()


Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

                return null;
            }
        };

        RequestCycle requestCycle = mock(RequestCycle.class);
        when(requestCycle.urlFor(any(IRequestHandler.class))).thenReturn(RESOURCE_NAME);

        Request request = mock(Request.class);
        when(request.getCharset()).thenReturn(Charset.defaultCharset());
        when(requestCycle.getRequest()).thenReturn(request);
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      RequestCycle requestCycle = RequestCycle.get();

      page.getSession().getPageManager().touchPage(page);
      if (page.isPageStateless())
      {
        pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters());
      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
        pageUrl = requestCycle.urlFor(handler);
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

        pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters());
      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
        pageUrl = requestCycle.urlFor(handler);
      }

      appendAssignment(buffer, "settings.src", pageUrl);
    }
    else
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      CharSequence pageUrl = null;
      RequestCycle requestCycle = RequestCycle.get();

      if (page.isPageStateless())
      {
        pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters());
        appendAssignment(buffer, "settings.ie8_src", pageUrl);
      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));

        pageUrl = requestCycle.urlFor(handler);
        String ie8_pageUrl = requestCycle.getUrlRenderer().renderRelativeUrl(
          requestCycle.mapUrlFor(handler));
        appendAssignment(buffer, "settings.ie8_src", ie8_pageUrl);
      }
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      protected void onSubmit(AjaxRequestTarget target)
      {
        BookmarkablePageRequestHandler bookmarkablePageRequestHandler = new BookmarkablePageRequestHandler(
          new PageProvider(Index.class));
        RequestCycle requestCycle = RequestCycle.get();
        CharSequence urlFor = requestCycle.urlFor(bookmarkablePageRequestHandler);
        target.add(label);
      }

      @Override
      protected void onError(AjaxRequestTarget target)
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

                return null;
            }
        };

        RequestCycle requestCycle = mock(RequestCycle.class);
        when(requestCycle.urlFor(any(IRequestHandler.class))).thenReturn(RESOURCE_NAME);

        Request request = mock(Request.class);
        when(request.getCharset()).thenReturn(Charset.defaultCharset());
        when(requestCycle.getRequest()).thenReturn(request);
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      RequestCycle requestCycle = RequestCycle.get();

      page.getSession().getPageManager().touchPage(page);
      if (page.isPageStateless())
      {
        pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters());
      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
        pageUrl = requestCycle.urlFor(handler);
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

        pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters());
      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
        pageUrl = requestCycle.urlFor(handler);
      }

      appendAssignment(buffer, "settings.src", pageUrl);
    }
    else
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

    if (shouldRedirectToPage(requestCycle))
    {
      // 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;
    }

    respondersFrozen = true;
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.