Package org.apache.wicket.markup.html

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


  public BasePage() {
    String appName = Application.getBean(ConfigurationDao.class).getAppName();

    FieldLanguage lang = WebSession.getLanguageObj();
    String code = lang.getCode();
    add(new TransparentWebMarkupContainer("html")
        .add(new AttributeModifier("xml:lang", code))
        .add(new AttributeModifier("lang", code))
        .add(new AttributeModifier("dir", Boolean.TRUE.equals(lang.getRtl()) ? "rtl" : "ltr")));
    add(new Label("pageTitle", appName));
    add(new HeaderPanel("header", appName));
View Full Code Here


      String id = getWicketMessageIdPrefix() + autoIndex;

      if (tag.isOpenClose()) {
        wc = new WebComponent(id);
      } else {
        wc = new TransparentWebMarkupContainer(id);
      }

      return wc;
    }
    return null;
View Full Code Here

  private final WebMarkupContainer body;

  public AbstractBasePage()
  {
    add(body = new TransparentWebMarkupContainer("body"));
  }
View Full Code Here

  protected final WebMarkupContainer profile;
 
  public ProfileImagePanel(String id, final long userId) {
    super(id);
   
    profile = new TransparentWebMarkupContainer("profile");
    String uri = getBean(UserDao.class).get(userId).getPictureuri();
    boolean absolute = false;
    try {
      absolute = URI.create(uri).isAbsolute();
    } catch (Exception e) {
View Full Code Here

    options.put("keyValueDelimiter", "/");
    String appName = getApplicationName();

    FieldLanguage lang = getLanguage();
    String code = lang.getCode();
    add(new TransparentWebMarkupContainer("html")
        .add(new AttributeModifier("xml:lang", code))
        .add(new AttributeModifier("lang", code))
        .add(new AttributeModifier("dir", Boolean.TRUE.equals(lang.getRtl()) ? "rtl" : "ltr")));
    add(new Label("pageTitle", appName));
    add(new HeaderPanel("header", appName));
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

      {
        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))
      {
        final 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

      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        final 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

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.