com.devsphere.mapping
Interface FormTemplate


public interface FormTemplate

A form template is a factory of form documents. The getTemplate() method of FormUtils takes a pure HTML document containing one or more forms, parses it and builds a template. Further, getDocument() of the template can be used to create instances of FormDocument. The beanToForm methods of FormUtils take bean objects and insert the bean data within documents as default values of the form elements.

Do not implement this interface. The FormDocument instances must be created internally by the framework.

See Also:
FormDocument, FormUtils

Method Summary
 FormDocument getDocument()
          Creates a document based on this template.
 

Method Detail

getDocument

public FormDocument getDocument()
Creates a document based on this template. The beanToForm methods of FormUtils know where to insert default values of form elements and error messages.
Returns:
the document object.