Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
Provide a facility to automatically populate a Form's field values from a Java Object's attributes, and to set an Object's attributes from the Form Field values. For example:
public void onGet() {
Integer customerId = Integer.valueOf(getContext().getRequest().getParameter("customerId"));
Customer customer = CustomerDAO.findByPK(customerId);
form.copyFrom(customer);
}
public void onPost() {
if (form.isValid())
}