}
public void generateWidgetLabel(Widget widget, String id) throws SAXException {
Widget widgetInst = getWidget(widget, id);
if (widget instanceof Repeater) {
widgetInst.generateLabel(this.cocoonConsumer);
} else {
AttributesImpl attrs = new AttributesImpl();
attrs.addCDATAAttribute("id", widgetInst.getRequestParameterName());
attrs.addCDATAAttribute("state", widgetInst.getCombinedState().getName());
this.cocoonConsumer.startElement(FormsConstants.INSTANCE_NS, "field-label", FormsConstants.INSTANCE_PREFIX_COLON + "field-label", attrs);