Examples of writeAttributeFromComponent()


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

      writer.startElement(HtmlConstants.TABLE, component);
      writer.writeAttribute(HtmlAttributes.BORDER, 0);
      writer.writeAttribute(HtmlAttributes.CELLSPACING, 0);
      writer.writeAttribute(HtmlAttributes.CELLPADDING, 0);
      writer.writeAttribute(HtmlAttributes.SUMMARY, "", false);
      writer.writeAttributeFromComponent(HtmlAttributes.TITLE, ATTR_TIP);

      writer.startElement(HtmlConstants.TR, null);
      writer.startElement(HtmlConstants.TD, null);
    }
View Full Code Here

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

      String id = component.getClientId(facesContext);
      writer.startElement(HtmlConstants.SPAN, component);
      writer.writeIdAttribute(id);
      writer.writeStyleAttribute();
      writer.writeClassAttribute();
      writer.writeAttributeFromComponent(HtmlAttributes.TITLE, ATTR_TIP);
    }
    if (escape) {
      StringTokenizer tokenizer = new StringTokenizer(text, "\n\r");
      while (tokenizer.hasMoreTokens()) {
        String token = tokenizer.nextToken();
View Full Code Here

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

      }
    }
    writer.writeClassAttribute();
    writer.writeIdAttribute(clientId);
    writer.writeNameAttribute(clientId);
    writer.writeAttributeFromComponent(HtmlAttributes.TITLE, ATTR_TIP);

    writer.flush();

//  image
    String image = (String) component.getAttributes().get(ATTR_IMAGE);
View Full Code Here

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

    writer.startElement(HtmlConstants.BUTTON, component);
    writer.writeAttribute(HtmlAttributes.TYPE, buttonType, false);
    writer.writeNameAttribute(clientId);
    writer.writeIdAttribute(clientId);
    writer.writeAttributeFromComponent(HtmlAttributes.TITLE, ATTR_TIP);
    writer.writeAttribute(HtmlAttributes.DISABLED, helper.isDisabled());
    if (helper.getOnclick() != null) {
      writer.writeAttribute(HtmlAttributes.ONCLICK, helper.getOnclick(), true);
    }
    writer.writeStyleAttribute();
View Full Code Here

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

    }
    writer.writeNameAttribute(clientId);
    writer.writeIdAttribute(clientId);
    writer.writeAttribute(HtmlAttributes.READONLY,
        ComponentUtil.getBooleanAttribute(component, ATTR_DISABLED));
    writer.writeAttributeFromComponent(HtmlAttributes.TITLE, ATTR_TIP);
    writer.endElement(HtmlConstants.INPUT);

  }
}
View Full Code Here

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

    List columnWidths =  (List) attributes.get(ATTR_WIDTH_LIST);


    TobagoResponseWriter writer = HtmlRendererUtil.getTobagoResponseWriter(facesContext);
    writer.startElement(HtmlConstants.TABLE, layout);
    writer.writeAttributeFromComponent(HtmlAttributes.BORDER, ATTR_BORDER);
    writer.writeClassAttribute();
    writer.writeStyleAttribute();
    writer.writeAttribute(HtmlAttributes.CELLSPACING, 0);
    writer.writeAttribute(HtmlAttributes.CELLPADDING, 0);
    writer.writeAttribute(HtmlAttributes.SUMMARY, "", false);
View Full Code Here

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

    writer.writeAttribute(HtmlAttributes.ALT, alt, true);
    if (tip != null) {
      writer.writeAttribute(HtmlAttributes.TITLE, tip, true);
    }
    writer.writeAttribute(HtmlAttributes.BORDER, border, false);
    writer.writeAttributeFromComponent(HtmlAttributes.HEIGHT, ATTR_HEIGHT);
    writer.writeStyleAttribute();
    writer.writeClassAttribute();
    writer.endElement(HtmlConstants.IMG);
  }
View Full Code Here

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

    }
    writer.writeClassAttribute();
    if (width != null) {
      writer.writeAttribute(HtmlAttributes.STYLE, "width: " + width + "px;", false);
    }
    writer.writeAttributeFromComponent(HtmlAttributes.TITLE, ATTR_TIP);
   
    if (label.getText() != null) {
      HtmlRendererUtil.writeLabelWithAccessKey(writer, label);
    }
    writer.endElement(HtmlConstants.LABEL);
View Full Code Here

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

public class ObjectRenderer extends LayoutableRendererBase {
  public void encodeEnd(FacesContext facesContext, UIComponent component)
      throws IOException {
    TobagoResponseWriter writer = HtmlRendererUtil.getTobagoResponseWriter(facesContext);
    writer.startElement(HtmlConstants.IFRAME, component);
    writer.writeAttributeFromComponent(HtmlAttributes.SRC, ATTR_TARGET);
    writer.writeClassAttribute();
    writer.writeStyleAttribute();

    String noframes = ResourceManagerUtil.getPropertyNotNull(
        facesContext, "tobago", "browser.noframe.message.prefix");
View Full Code Here

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

    String noframes = ResourceManagerUtil.getPropertyNotNull(
        facesContext, "tobago", "browser.noframe.message.prefix");
    writer.writeText(noframes + " ");
    writer.startElement(HtmlConstants.A, component);
    writer.writeAttributeFromComponent(HtmlAttributes.HREF, ATTR_TARGET);
    writer.writeTextFromComponent(ATTR_TARGET);
    writer.endElement(HtmlConstants.A);
    noframes = ResourceManagerUtil.getPropertyNotNull(
        facesContext, "tobago", "browser.noframe.message.postfix");
    writer.writeText(" " + noframes);
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.