i+=col;
}
builder.appendHtmlConstant(tableSuffix);
HTMLPanel panel = new HTMLPanel(builder.toSafeHtml());
// inline widget
for(String key : itemKeys)
{
FormItem item = groupItems.get(key);
final String widgetId = id + key;
final String labelId = id + key+"_l"; // aria property key
final String insertId = id + key+"_i";
Element input = item.getInputElement();
if(input!=null)
{
input.setAttribute("id", widgetId);
//widget.getElement().setAttribute("tabindex", "0");
input.setAttribute("aria-labelledby", labelId);
input.setAttribute("aria-required", String.valueOf(item.isRequired()));
}
panel.add(item.asWidget(), insertId);
}
return panel;
}