Package org.apache.wicket

Examples of org.apache.wicket.MarkupContainer


  @Test
  public void dequeue1()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='b'><p wicket:id='c'></p></p></p>");
    MarkupContainer a = new A(), b = new B(), c = new C();

    p.queue(b, c, a);
    assertThat(p, hasPath(a, b, c));
    tester.startPage(p);
  }
View Full Code Here


  @Test
  public void dequeue2()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='b'><p wicket:id='c'></p></p></p>");
    MarkupContainer a = new A(), b = new B(), c = new C();

    p.queue(a);
    a.queue(b, c);

    tester.startPage(p);

    assertThat(p, hasPath(a, b, c));
  }
View Full Code Here

  @Test
  public void dequeue3()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='b'><p wicket:id='c'></p></p></p>");
    MarkupContainer a = new A(), b = new B(), c = new C();

    p.queue(a);
    a.queue(b);
    b.queue(c);

    tester.startPage(p);

    assertThat(p, hasPath(a, b, c));
View Full Code Here

  @Test
  public void dequeue4()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='b'><p wicket:id='c'></p></p></p>");
    MarkupContainer a = new A(), b = new B(), c = new C();

    p.queue(a, c);
    a.queue(b);

    tester.startPage(p);

    assertThat(p, hasPath(a, b, c));
  }
View Full Code Here

  @Test
  public void dequeue5()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='b'><p wicket:id='c'></p></p></p>");
    MarkupContainer a = new A(), b = new B(), c = new C();
    p.queue(a, c);
    a.add(b);

    tester.startPage(p);

    assertThat(p, hasPath(a, b, c));
  }
View Full Code Here

  @Test
  public void dequeue6()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='b'></p><p wicket:id='c'></p></p>");
    MarkupContainer a = new A(), b = new B(), c = new C();

    p.queue(a, b, c);

    tester.startPage(p);
View Full Code Here

      + "    </p>"
      + "  </p>"
      + "</p>");
    // @formatter:on

    MarkupContainer a = new A(), b = new B(), c = new C(), d = new D(), e = new E(), f = new F(), g = new G();

    a.add(b);
    b.queue(e);
    p.queue(a, c);
    b.add(d);
    f.queue(g);
    b.add(f);
View Full Code Here

  @Test
  public void dequeueError1()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='b'><p wicket:id='c'></p></p></p>");
    MarkupContainer a = new A(), b = new B(), c = new C();

    p.queue(b, c);
    c.queue(a);

    try
View Full Code Here

   * @return A BookmarkablePageLink<?> to handle the href
   */
  private Component resolveAutomaticLink(final PathInfo pathInfo, final String id,
    final ComponentTag tag)
  {
    final MarkupContainer container = pathInfo.getContainer();
    final Page page = container.getPage();

    // Make the id (page-)unique
    final String autoId = id + Integer.toString(page.getAutoIndex());

    // get the tag name, which is something like 'a' or 'script'
View Full Code Here

  /** {@code [a,q[r,s]] - > [a[q[r[s]]]] } */
  @Test
  public void panel1()
  {
    MarkupContainer a = new A(), r = new R(), s = new S();

    TestPanel q = new TestPanel("q");
    q.setPanelMarkup("<wicket:panel><p wicket:id='r'><p wicket:id='s'></p></p></wicket:panel>");
    q.queue(r, s);

View Full Code Here

TOP

Related Classes of org.apache.wicket.MarkupContainer

Copyright © 2018 www.massapicom. 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.