Package org.apache.wicket.protocol.http

Examples of org.apache.wicket.protocol.http.WebRequestCycle.urlFor()


        {
          IBookmarkablePageRequestTarget current = (IBookmarkablePageRequestTarget)target;
          BookmarkablePageRequestTarget redirect = new BookmarkablePageRequestTarget(
            session.createAutoPageMapName(), current.getPageClass(),
            current.getPageParameters());
          url = cycle.urlFor(redirect);
        }
        else
        {
          url = webPage.urlFor(INewBrowserWindowListener.INTERFACE);
        }
View Full Code Here


  {
    tester.setupRequestAndResponse();

    WebRequestCycle cycle = tester.createRequestCycle();

    String url = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableHomePageLinksPage.class, null))
        .toString();

    tester.setupRequestAndResponse();
    tester.getServletRequest().setURL(
View Full Code Here

  {
    tester.setupRequestAndResponse();

    WebRequestCycle cycle = tester.createRequestCycle();

    String url = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableThrowsInterceptPage.class, null))
        .toString();
    String url2 = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableContinueToPage.class, null))
        .toString();
View Full Code Here

    WebRequestCycle cycle = tester.createRequestCycle();

    String url = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableThrowsInterceptPage.class, null))
        .toString();
    String url2 = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableContinueToPage.class, null))
        .toString();

    tester.setupRequestAndResponse();
    tester.getServletRequest().setURL(
View Full Code Here

    WebRequestCycle cycle = tester.createRequestCycle();

    PageParameters pp = new PageParameters();
    pp.put("test", "test");
    String url = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableThrowsInterceptPage.class, pp))
        .toString();
    String url2 = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableContinueToPage.class, null))
        .toString();
View Full Code Here

    PageParameters pp = new PageParameters();
    pp.put("test", "test");
    String url = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableThrowsInterceptPage.class, pp))
        .toString();
    String url2 = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableContinueToPage.class, null))
        .toString();

    tester.setupRequestAndResponse();
    tester.getServletRequest().setURL(
View Full Code Here

    PageParameters parameters = new PageParameters();
    parameters.add("0", "Integer0");
    parameters.add("1", "Integer1");
    parameters.add("2", "a:b");

    String url1 = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableHomePageLinksPage.class, parameters))
        .toString();
    String url2 = cycle.urlFor(
        new BookmarkablePageRequestTarget("mypagemap", BookmarkableHomePageLinksPage.class,
            parameters)).toString();
View Full Code Here

    parameters.add("2", "a:b");

    String url1 = cycle.urlFor(
        new BookmarkablePageRequestTarget(BookmarkableHomePageLinksPage.class, parameters))
        .toString();
    String url2 = cycle.urlFor(
        new BookmarkablePageRequestTarget("mypagemap", BookmarkableHomePageLinksPage.class,
            parameters)).toString();
    assertEquals("test1/Integer0/Integer1/a%3Ab/", url1);
    assertEquals("test2/Integer0/Integer1/a%3Ab/wicket:pageMapName/mypagemap/", url2);
View Full Code Here

        {
          IBookmarkablePageRequestTarget current = (IBookmarkablePageRequestTarget)target;
          BookmarkablePageRequestTarget redirect = new BookmarkablePageRequestTarget(
            session.createAutoPageMapName(), current.getPageClass(),
            current.getPageParameters());
          url = cycle.urlFor(redirect);
        }
        else
        {
          url = webPage.urlFor(INewBrowserWindowListener.INTERFACE);
        }
View Full Code Here

    PageParameters parameters = new PageParameters();
    parameters.add("0", "Integer0");
    parameters.add("1", "Integer1");
    parameters.add("2", "a:b");

    String url1 = cycle.urlFor(
      new BookmarkablePageRequestTarget(BookmarkableHomePageLinksPage.class, parameters))
      .toString();
    String url2 = cycle.urlFor(
      new BookmarkablePageRequestTarget("mypagemap", BookmarkableHomePageLinksPage.class,
        parameters)).toString();
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.