form.addBeanElement("surname", "#Last name", new TextControl(), false);
form.addBeanElement("phone", "#Phone no", new TextControl(), true);
form.addBeanElement("birthdate", "#Birthdate", new DateControl(), false);
if (id != null) {
PersonMO person = (PersonMO) getGeneralDAO().getById(PersonMO.class, id);
form.writeBean(person);
}
addWidget("form", form);
}