* @return
*/
protected Form decorateFormActions(Form form, FormAction[] formActions) {
if (form != null && formActions != null) {
// create new section for buttons
Section section = new Section();
section.setProperty(FormUtil.PROPERTY_ID, "section-actions");
Collection<Element> sectionChildren = new ArrayList<Element>();
section.setChildren(sectionChildren);
Collection<Element> formChildren = form.getChildren();
if (formChildren == null) {
formChildren = new ArrayList<Element>();
}
formChildren.add(section);