public void addBody(Body body) throws WingException, SQLException, AuthorizeException { // Get all our parameters String idsString = parameters.getParameter("schemaIDs", null); ArrayList<MetadataSchema> schemas = new ArrayList<MetadataSchema>(); for (String id : idsString.split(",")) { MetadataSchema schema = MetadataSchema.find(context, Integer.valueOf(id)); schemas.add(schema); } // DIVISION: metadata-schema-confirm-delete Division deleted = body.addInteractiveDivision( "metadata-schema-confirm-delete", contextPath + "/admin/metadata-registry", Division.METHOD_POST, "primary administrative metadata-registry"); deleted.setHead(T_head); deleted.addPara(T_para1); Para warning = deleted.addPara(); warning.addHighlight("bold").addContent(T_warning); warning.addContent(T_para2); Table table = deleted.addTable("schema-confirm-delete", schemas.size() + 1, 3); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_column1); header.addCell().addContent(T_column2); header.addCell().addContent(T_column3); for (MetadataSchema schema : schemas) { Row row = table.addRow(); row.addCell().addContent(schema.getSchemaID()); row.addCell().addContent(schema.getNamespace()); row.addCell().addContent(schema.getName()); } Para buttons = deleted.addPara(); buttons.addButton("submit_confirm").setValue(T_submit_delete); buttons.addButton("submit_cancel").setValue(T_submit_cancel); deleted.addHidden("administrative-continue").setValue(knot.getId()); }