@Override /** Each input is rendered with a label and in its own div to enable scripting. */ public String toHtml() { String result = ""; for (HtmlInput<?> i : this.inputs.values()) { result += "<div style=\"clear:both; "; if (i.isHidden()) { result += "display:none\""; } else { result += "display:block\""; } if (i.getId() != null) { result += (" id=\"div" + i.getId() + "\""); } result += "><label style=\"width:16em;float:left;\" for=\"" + i.getName() + "\">" + i.getLabel() + "</label>" + i.toHtml() + (!i.isNillable() ? " *" : "") + "</div>"; } return result; }