Differences between revisions 2 and 3
Revision 2 as of 2009-11-25 04:40:14
Size: 623
Editor: BenGolding
Comment:
Revision 3 as of 2009-11-25 04:44:59
Size: 912
Editor: BenGolding
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
   Manages the all of the fields in the form.    Manages the all of the fields in the form. Most interactions in the application are with Form instances: they coordinate loading values from model objects (typically attributes of classes) into the Fields, organise rendering and updating the values from the browser, validation, and storing the values back into the model objects.

Concepts

There are three main concepts that sit behind the Albatross forms implementation:

  • Field
    • A data input field. It can format its output and validate its input. It contains a copy of the value that it holds so that the user can edit it without needing to maintain a separate copy in the application.
  • Fieldset
    • Groups together a list of Fields and renders them in a table.
  • Form
    • Manages the all of the fields in the form. Most interactions in the application are with Form instances: they coordinate loading values from model objects (typically attributes of classes) into the Fields, organise rendering and updating the values from the browser, validation, and storing the values back into the model objects.

Note that the Albatross form support doesn't emit an HTML form tag, the developer is still responsible for including that in the page template.

None: Concepts (last edited 2011-02-15 06:05:18 by localhost)