code: public static boolean renderHTMLStringAttribute(ResponseWriter writer,
              String componentProperty, String htmlAttrName, String value)
              throws IOException
      {
          if (!isDefaultStringAttributeValue(value))
          {
              writer.writeAttribute(htmlAttrName, value, componentProperty);
              return true;
          }
          return false;
      }
docs: Renders a html string type attribute. If the value retrieved from the component
  property is "" or null, the attribute is not rendered.
  
  @param writer
  @param componentProperty
  @param htmlAttrName
  @param value
  @return
  @throws IOException