// to support outputLabel with "for" attribute
// 1. row
DynaFormRow row = model.createRegularRow();
DynaFormLabel label11 = row.addLabel("Author", 1, 1);
DynaFormControl control12 = row.addControl(new BookProperty("Author", true), "input", 1, 1);
label11.setForControl(control12);
DynaFormLabel label13 = row.addLabel("ISBN", 1, 1);
DynaFormControl control14 = row.addControl(new BookProperty("ISBN", true), "input", 1, 1);
label13.setForControl(control14);
// 2. row
row = model.createRegularRow();
DynaFormLabel label21 = row.addLabel("Title", 1, 1);
DynaFormControl control22 = row.addControl(new BookProperty("Title", false), "input", 3, 1);
label21.setForControl(control22);
// 3. row
row = model.createRegularRow();
DynaFormLabel label31 = row.addLabel("Publisher", 1, 1);
DynaFormControl control32 = row.addControl(new BookProperty("Publisher", false), "input", 1, 1);
label31.setForControl(control32);
DynaFormLabel label33 = row.addLabel("Published on", 1, 1);
DynaFormControl control34 = row.addControl(new BookProperty("Published on", false), "calendar", 1, 1);
label33.setForControl(control34);
// 4. row
row = model.createRegularRow();
DynaFormLabel label41 = row.addLabel("Language", 1, 1);
DynaFormControl control42 = row.addControl(new BookProperty("Language", false), "select", 1, 1);
label41.setForControl(control42);
DynaFormLabel label43 = row.addLabel("Description", 1, 2);
DynaFormControl control44 = row.addControl(new BookProperty("Description", false), "textarea", 1, 2);
label43.setForControl(control44);
// 5. row
row = model.createRegularRow();
DynaFormLabel label51 = row.addLabel("Rating", 1, 1);
DynaFormControl control52 = row.addControl(new BookProperty("Rating", 3, true), "rating", 1, 1);
label51.setForControl(control52);
}