xml.appendOptionalAttribute("class", component.getHtmlClass()); xml.appendOptionalAttribute("track", component.isTracking(), "true"); xml.appendOptionalAttribute("hidden", fieldLayout.isHidden(), "true"); xml.appendOptionalAttribute("labelWidth", labelWidth > 0, labelWidth); xml.appendAttribute("layout", fieldLayout.getLayoutType());