Package org.apache.wicket

Examples of org.apache.wicket.MarkupContainer


  /** panel has leading markup */
  @Test
  public void panel2()
  {
    MarkupContainer r = new R();

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

View Full Code Here


  /** panel with a static header section */
  @Test
  public void panel3()
  {
    MarkupContainer r = new R();

    TestPanel q = new TestPanel("q");
    q.setPanelMarkup("<html><head><wicket:head><meta/></wicket:head></head>"
      + "<body><wicket:panel><p wicket:id='r'></p></wicket:panel></body></html>");
    q.queue(r);
View Full Code Here

   * test with inner panels
   */
  @Test
  public void nestedPanels()
  {
    MarkupContainer r = new R(), s = new S();

    Panel innerPanel = new InnerPanel("inner");
    innerPanel.queue(s);

    Panel outerPanel = new OuterPanel("outer");
View Full Code Here

  public void repeater2()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='lv'><p wicket:id='b'><p wicket:id='c'></p></p></p></p>");

    MarkupContainer a = new A();
    LV l = new LV(3)
    {
      @Override
      protected void populateItem(ListItem<Integer> item)
      {
View Full Code Here

  public void repeater3()
  {
    TestPage p = new TestPage();
    p.setPageMarkup("<p wicket:id='a'><p wicket:id='lv'><p wicket:id='b'><p wicket:id='q'></p></p></p></p>");

    MarkupContainer a = new A();
    LV l = new LV(3)
    {
      @Override
      protected void populateItem(ListItem<Integer> item)
      {
View Full Code Here

     */
    protected final Component newPackageResourceReferenceAutoComponent(
      final String autoId, final PathInfo pathInfo,
      final String attribute)
    {
      final MarkupContainer container = pathInfo.getContainer();

      if (!pathInfo.absolute && (pathInfo.path != null) && (pathInfo.path.length() > 0))
      {
        // Href is relative. Create a resource reference pointing at this file

View Full Code Here

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

    tester.startPage(p);
View Full Code Here

  }

  @Test
  public void border1()
  {
    MarkupContainer a = new A(), b = new B(), r = new R(), s = new S();

    TestBorder border = new TestBorder("border");
    border.setBorderMarkup("<wicket:border><b1 wicket:id='r'><b2 wicket:id='s'>" +
        "<wicket:body/></b2></b1></wicket:border>");
    border.queueToBorder(r, s);
View Full Code Here


  @Test
  public void border_nested()
  {
    MarkupContainer a = new A(), b = new B(), c= new C(), d = new D(), r = new R(), s = new S();

    Border outerBorder = new OuterBorder("outerBorder");

    Border innerBorder = new InnerBorder("innerBorder");
View Full Code Here

    assertThat(p, hasPath(new Path(a, outerBorder, r, outerBorder.getBodyContainer(), b)));
  }

  @Test
  public void fragment1() {
    MarkupContainer a = new A(), b = new B(), r = new R(), s = new S();
   
    TestPage page = new TestPage();
    page.setPageMarkup("<a wicket:id='a'></a><f wicket:id='fragment'></f><b wicket:id='b'></b>"
      + "<wicket:fragment wicket:id='f'><r wicket:id='r'></r><s wicket:id='s'></s></wicket:fragment>");
   
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.