@SuppressWarnings("serial")
@Form(heading = "Employee Form", labelWidth = 100, fieldWidth = 150,
width = 500)
public class EmployeeForm implements BeanModelTag, Serializable {
@CharField(index = 1, fieldLabel = "First Name", fieldSet =
"Personal Info")
String firstName;
@CharField(index = 2, fieldLabel = "Last Name")
String lastName;
...
@Grid( fieldLabel="Telephones" )
Set<Telephone> telephones = new LinkedHashSet<Telephone>();
...
}
@SuppressWarnings("serial")
public class Telephone implements BeanModelTag, Serializable {
@CharField(index = 1, fieldLabel = "Number")
String number;
@ChooseOneField(index = 1, fieldLabel = "Telephone Type")
TelephoneType type;
}
public enum TelephoneType {
Commercial, Personal, Mobile;
}
I hope I have been clear,
Thanx for GXTForms,
Jean Madson