/** * Renders the name of the form. If XHTML is set to true, the name will * be rendered as an 'id' attribute, otherwise as a 'name' attribute. */ protected void renderName(StringBuffer results) { if (this.isXhtml()) { if (getStyleId() == null) { renderAttribute(results, "id", beanName); } else { renderAttribute(results, "id", getStyleId()); } } else { renderAttribute(results, "name", beanName); renderAttribute(results, "id", getStyleId()); } }