Home » tapestry-src-5.0.19 » org.apache.tapestry5.corelib.components » [javadoc | source]
public class: BeanEditForm [javadoc | source]

All Implemented Interfaces:
    ClientElement, FormValidationControl

A component that creates an entire form editing the properties of a particular bean. Inspired by Trails and BeanForm (both for Tapestry 4). Generates a simple UI for editing the properties of a JavaBean, with the flavor of UI for each property (text field, checkbox, drop down list) determined from the property type (or by other means, such as an annotation), and the order and validation for the properties determined from annotations on the property's getter and setter methods.

You may add <t:parameter>s to the component; when the name matches (case insensitive) the name of a property, then the corresponding Block is renderered, rather than any of the built in property editor blocks. This allows you to override specific properties with your own customized UI, for cases where the default UI is insufficient, or no built-in editor type is appropriate.

Method from org.apache.tapestry5.corelib.components.BeanEditForm Summary:
clearErrors,   getClientId,   getHasErrors,   isValid,   onPrepareFromForm,   recordError,   recordError
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tapestry5.corelib.components.BeanEditForm Detail:
 public  void clearErrors() 
 public String getClientId() 
    Returns the client id of the embedded form.
 public boolean getHasErrors() 
 public boolean isValid() 
  void onPrepareFromForm() 
 public  void recordError(String errorMessage) 
 public  void recordError(Field field,
    String errorMessage)