// Row 3
form1.add(new TextField("name"));
form1.add(new TextField("type"));
form1.add(new TelephoneField("telephone"));
form1.add(new Submit("ok", " OK "));
form1.add(new PageSubmit("cancel", HomePage.class));
//-------
// Form 2
form2.setColumns(2);
FieldSet fieldSet = new FieldSet("fieldSet", "FieldSet");
form2.add(fieldSet);
// Row 1
fieldSet.add(new TextField("name"));
fieldSet.add(new TextField("type"));
// Row 2
fieldSet.add(new TextArea("description", 39, 3), 2);
// Row 3
fieldSet.add(new EmailField("email"), 2);
// Row 4
fieldSet.add(new TelephoneField("telephone"));
fieldSet.add(new Submit("ok", " OK "));
fieldSet.add(new PageSubmit("cancel", HomePage.class));
}