Examples of renderURL()


Examples of org.apache.wicket.request.UrlRenderer.renderUrl()

  public void test8()
  {
    UrlRenderer r1 = new UrlRenderer(new MockWebRequest(
      Url.parse("en/first-test-page?16-1.ILinkListener-l1")));
    assertEquals("./first-test-page/indexed1/indexed2/indexed3?p1=v1",
      r1.renderUrl(Url.parse("en/first-test-page/indexed1/indexed2/indexed3?p1=v1")));
  }

  /**
   *
   */
 
View Full Code Here

Examples of org.apache.wicket.request.UrlRenderer.renderUrl()

   */
  @Test
  public void test9()
  {
    UrlRenderer r1 = new UrlRenderer(new MockWebRequest(Url.parse("a/b/q/d/e")));
    assertEquals("../../../q/c/d/e", r1.renderUrl(Url.parse("a/q/c/d/e")));
  }

  /**
   *
   */
 
View Full Code Here

Examples of org.apache.wicket.request.UrlRenderer.renderUrl()

    Url oldBase = renderer.getBaseUrl();
    try
    {
      Url action = Url.parse(getActionUrl().toString());
      renderer.setBaseUrl(action);
      url = renderer.renderUrl(Url.parse(url.toString()));
    }
    finally
    {
      renderer.setBaseUrl(oldBase);
    }
View Full Code Here

Examples of org.apache.wicket.request.UrlRenderer.renderUrl()

     */
    UrlRenderer renderer = getRequestCycle().getUrlRenderer();
    Url oldBase = renderer.getBaseUrl();
    Url action = Url.parse(getActionUrl().toString());
    renderer.setBaseUrl(action);
    url = renderer.renderUrl(Url.parse(url.toString()));
    renderer.setBaseUrl(oldBase);

    Form<?> root = getRootForm();
    return new AppendingStringBuffer("document.getElementById('").append(
      root.getHiddenFieldId())
View Full Code Here

Examples of org.apache.wicket.request.UrlRenderer.renderUrl()

   */
  @Test
  public void test1()
  {
    UrlRenderer r1 = new UrlRenderer(new MockWebRequest(Url.parse("foo/bar/baz?a=b")));
    assertEquals("./xyz?x=y", r1.renderUrl(Url.parse("foo/bar/xyz?x=y")));
    assertEquals("./baz/xyz?x=y", r1.renderUrl(Url.parse("foo/bar/baz/xyz?x=y")));
    assertEquals("../aaa/xyz?x=y", r1.renderUrl(Url.parse("foo/aaa/xyz?x=y")));
    assertEquals("../../bbb/aaa/xyz?x=y", r1.renderUrl(Url.parse("bbb/aaa/xyz?x=y")));
  }

View Full Code Here

Examples of org.apache.wicket.request.UrlRenderer.renderUrl()

  @Test
  public void test1()
  {
    UrlRenderer r1 = new UrlRenderer(new MockWebRequest(Url.parse("foo/bar/baz?a=b")));
    assertEquals("./xyz?x=y", r1.renderUrl(Url.parse("foo/bar/xyz?x=y")));
    assertEquals("./baz/xyz?x=y", r1.renderUrl(Url.parse("foo/bar/baz/xyz?x=y")));
    assertEquals("../aaa/xyz?x=y", r1.renderUrl(Url.parse("foo/aaa/xyz?x=y")));
    assertEquals("../../bbb/aaa/xyz?x=y", r1.renderUrl(Url.parse("bbb/aaa/xyz?x=y")));
  }

  /**
 
View Full Code Here

Examples of org.gatein.pc.api.spi.PortletInvocationContext.renderURL()

      //
      PortletInvocationContext responseContext = inv.getContext();

      //
      return responseContext.renderURL(url, format);
   }

   public void write(Writer writer) throws IOException
   {
      write(writer, false);
View Full Code Here

Examples of org.gatein.pc.controller.impl.PortletURLRenderer.renderURL()

                  context.getClientRequest(),
                  context.getClientResponse(),
                  context.getPageNavigationalStateSerialization());

               //
               String url = renderer.renderURL(new URLFormat(null, null, true, null));
               resp.sendRedirect(url);
               return;
            }
         }
         else if (controllerResponse instanceof ResourceResponse)
View Full Code Here

Examples of org.jboss.portal.portlet.spi.PortletInvocationContext.renderURL()

      //
      PortletInvocationContext responseContext = inv.getContext();

      //
      return responseContext.renderURL(url, format);
   }

   public void write(Writer writer) throws IOException
   {
      write(writer, false);
View Full Code Here

Examples of org.jboss.seam.wiki.core.ui.WikiURLRenderer.renderURL()

                        WikiURLRenderer urlRenderer = (WikiURLRenderer) Component.getInstance(WikiURLRenderer.class);
                        return new SearchHit(
                            WikiDocument.class.getSimpleName(),
                            "icon.doc.gif",
                            "(" + doc.getCreatedBy().getFullname() + ") " + escapeBestFragments(query, new NullFragmenter(), doc.getName(), 0, 0),
                            urlRenderer.renderURL(doc),
                            escapeBestFragments(query, new SimpleFragmenter(100), doc.getContent(), 5, 350)
                        );
                    }
                }
            );
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.