Examples of writeComponentClass()


Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    contentStyle.append(top != null ? top : "50");
    contentStyle.append("; ");

    writer.startElement(HtmlConstants.DIV, component);
    writer.writeIdAttribute(clientId);
    writer.writeComponentClass();
    writer.writeAttribute(HtmlAttributes.ONCLICK, "Tobago.popupBlink('" + clientId + "')", null);
    if (ClientProperties.getInstance(facesContext).getUserAgent().isMsie()) {
      String bgImage = ResourceManagerUtil.getImageWithPath(facesContext, "image/popupBg.png");
      writer.writeAttribute(HtmlAttributes.STYLE, "background: none; "
          + "filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    writer.writeNameAttribute(clientId);
    writer.writeIdAttribute(clientId);
    writer.writeAttribute(HtmlAttributes.DISABLED,
        ComponentUtil.getBooleanAttribute(component, ATTR_DISABLED));
    writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);
    writer.writeComponentClass();
    writer.writeAttribute(HtmlAttributes.TITLE, null, ATTR_TIP);
    writer.writeAttribute(HtmlAttributes.SIZE, 2, null); // should be greater 1
    if (!ComponentUtil.getBooleanAttribute(component, ATTR_REQUIRED)) {
      writer.writeAttribute(HtmlAttributes.ONCHANGE, "Tobago.selectOneListboxChange(this)", null);
      writer.writeAttribute(HtmlAttributes.ONCLICK, "Tobago.selectOneListboxClick(this)", null);
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    writer.writeAttribute(HtmlAttributes.READONLY,
        ComponentUtil.getBooleanAttribute(input, ATTR_READONLY));
    writer.writeAttribute(HtmlAttributes.DISABLED,
        ComponentUtil.getBooleanAttribute(input, ATTR_DISABLED));
    writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);
    writer.writeComponentClass();
    if (onchange != null) {
      writer.writeAttribute(HtmlAttributes.ONCHANGE, onchange, null);
    }
    String currentValue = ComponentUtil.currentValue(input);
    if (currentValue != null) {
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    String id = input.getClientId(facesContext);
    final String idPrefix = id + SUBCOMPONENT_SEP;
    TobagoResponseWriter writer
        = (TobagoResponseWriter) facesContext.getResponseWriter();
    writer.startElement(HtmlConstants.DIV, input);
    writer.writeComponentClass();

    writer.startElement(HtmlConstants.DIV, input);
    writer.writeAttribute(HtmlAttributes.ID, idPrefix + "borderDiv", null);
    writer.writeClassAttribute("tobago-time-borderDiv"
        + (hasSeconds ? " tobago-time-borderDiv-seconds" : ""));
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    writer.writeAttribute(HtmlAttributes.ONLOAD,
        "Tobago.init('" + clientId + "');", null);
//    writer.writeAttribute("onunload", "Tobago.onexit();", null);
    //this ist for ie to prevent scrollbars where none are needed
    writer.writeAttribute(HtmlAttributes.SCROLL, "auto", null);
    writer.writeComponentClass();
    writer.writeIdAttribute(clientId);

    String blank = ResourceManagerUtil.getImageWithPath(facesContext, "image/blank.gif");

    HtmlRendererUtil.writeJavascript(writer, "Tobago.pngFixBlankImage = \"" + blank + "\";");
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

      page.getOnloadScripts().add("tbgTreeStates('" + clientId + "')");
    }
    TobagoResponseWriter writer
        = (TobagoResponseWriter) facesContext.getResponseWriter();
    writer.startElement(HtmlConstants.DIV, tree);
    writer.writeComponentClass();
    writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);

    StringBuilder value = new StringBuilder(";");
    List<UITreeOldNode> expandPath = tree.getExpandPath();
    for (UITreeOldNode node : expandPath) {
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    writer.startElement(HtmlConstants.INPUT, component);
    writer.writeAttribute(HtmlAttributes.TYPE, "checkbox", null);
    writer.writeAttribute(HtmlAttributes.VALUE, "true", null);
    writer.writeAttribute(HtmlAttributes.CHECKED, checked);
    writer.writeNameAttribute(component.getClientId(facesContext));
    writer.writeComponentClass();
    writer.writeIdAttribute(component.getClientId(facesContext));
    writer.writeAttribute(HtmlAttributes.DISABLED,
        ComponentUtil.getBooleanAttribute(component, ATTR_DISABLED));
    writer.writeAttribute(HtmlAttributes.TITLE, null, ATTR_TIP);
    writer.endElement(HtmlConstants.INPUT);
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

          + item.getValue().toString();
      clientIds.add(itemId);
      writer.startElement(HtmlConstants.INPUT, component);
      writer.writeAttribute(HtmlAttributes.TYPE, "checkbox", null);

      writer.writeComponentClass();
      writer.writeAttribute(HtmlAttributes.CHECKED,
          RenderUtil.contains(values, item.getValue()));
      writer.writeNameAttribute(id);
      writer.writeIdAttribute(itemId);
      String formattedValue
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    if (createSpan) {
      String id = component.getClientId(facesContext);
      writer.startElement(HtmlConstants.SPAN, component);
      writer.writeIdAttribute(id);
      writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);
      writer.writeComponentClass();
      writer.writeAttribute(HtmlAttributes.TITLE, null, ATTR_TIP);
    }
    if (escape) {
      StringTokenizer tokenizer = new StringTokenizer(text, "\n\r");
      while (tokenizer.hasMoreTokens()) {
View Full Code Here

Examples of org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeComponentClass()

    if (!suppressContainer) {
      setToolBarHeight(facesContext, uiComponent);

      writer.startElement(HtmlConstants.DIV, toolbar);
      writer.writeIdAttribute(toolbar.getClientId(facesContext));
      writer.writeComponentClass();
      writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);
      writer.startElement(HtmlConstants.DIV, toolbar);
      writer.writeClassAttribute("tobago-toolbar-div-inner");
    }
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.