Package org.apache.wicket.markup.html

Examples of org.apache.wicket.markup.html.TransparentWebMarkupContainer


      WicketTag wtag = (WicketTag)tag;
      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        String id = tag.getId() + "-" + container.getPage().getAutoIndex();

        return new TransparentWebMarkupContainer(id);
      }
    }

    // We were not able to handle the tag
    return null;
View Full Code Here


      {
        wc = new WebComponent(id);
      }
      else
      {
        wc = new TransparentWebMarkupContainer(id);
      }

      return wc;
    }
    return null;
View Full Code Here

        container.getPage().getAutoIndex();

      // we do not want to mess with the hierarchy, so the container has to be
      // transparent as it may have wicket components inside. for example a raw anchor tag
      // that contains a label.
      return new TransparentWebMarkupContainer(id);
    }
    return null;
  }
View Full Code Here

      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        String id = tag.getId() + "-" + container.getPage().getAutoIndex();
        tag.setId(id);

        return new TransparentWebMarkupContainer(id);
      }
    }

    // We were not able to handle the tag
    return null;
View Full Code Here

      {
        wc = new WebComponent(id);
      }
      else
      {
        wc = new TransparentWebMarkupContainer(id);
      }

      return wc;
    }
    return null;
View Full Code Here

      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        String id = tag.getId() + "-" + container.getPage().getAutoIndex();
        tag.setId(id);

        return new TransparentWebMarkupContainer(id);
      }
    }

    // We were not able to handle the tag
    return null;
View Full Code Here

        // It is <wicket:head>. Because they do not provide any
        // additional functionality they are merely a means of surrounding relevant
        // markup. Thus we simply create a WebMarkupContainer to handle
        // the tag.
        WebMarkupContainer header2 = new TransparentWebMarkupContainer(
          HtmlHeaderSectionHandler.HEADER_ID);

        header2.setRenderBodyOnly(true);
        header.add(header2);

        return header;
      }
      else if (container instanceof HtmlHeaderContainer)
      {
        // It is <wicket:head>. Because they do not provide any
        // additional functionality there are merely a means of surrounding
        // relevant markup. Thus we simply create a WebMarkupContainer to handle
        // the tag.
        WebMarkupContainer header = new TransparentWebMarkupContainer(
          HtmlHeaderSectionHandler.HEADER_ID);
        header.setRenderBodyOnly(true);

        return header;
      }
      final Page page = container.getPage();
      final String pageClassName = (page != null) ? page.getClass().getName() : "unknown";
View Full Code Here

      WicketTag wtag = (WicketTag)tag;
      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        String id = tag.getId() + "-" + container.getPage().getAutoIndex();

        return new TransparentWebMarkupContainer(id);
      }
    }

    // We were not able to handle the tag
    return null;
View Full Code Here

      {
        target.add(getPage().get("special"));
      }
    });

    WebMarkupContainer mc1 = new TransparentWebMarkupContainer("mc1");

    add(mc1);

    mc1.add(new WebMarkupContainer("special"));

    WebMarkupContainer mc2 = new WebMarkupContainer("mc2");

    add(mc2);
View Full Code Here

  private static final IModel<String> DEMO_TITLE_MODEL = Model.of("WiQuery-demo");
 
  public MainTemplate(PageParameters parameters) {
    super(parameters);
   
    MarkupContainer htmlRootElement = new TransparentWebMarkupContainer("htmlRootElement");
    htmlRootElement.add(AttributeAppender.append("lang", WebSession.get().getLocale().getLanguage()));
    add(htmlRootElement);
   
    MarkupContainer bodyElement = new TransparentWebMarkupContainer("bodyElement");
    add(bodyElement);
   
    add(new Label("headPageTitle", DEMO_TITLE_MODEL));
   
    Link<Void> homePageLink = new BookmarkablePageLink<Void>("homePageLink", HomePage.class);
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.TransparentWebMarkupContainer

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.