Differences between revisions 1 and 2
Revision 1 as of 2009-11-20 00:11:35
Size: 573
Editor: BenGolding
Revision 2 as of 2009-11-23 04:52:12
Size: 617
Editor: BenGolding
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
    I normally do this in the constructor.

Flow of Control

The flow of control through Albatross forms is tied in with Albatross's flow of control.

A mistake I have made a couple of times is to reinitialise the form from the model part way through the user's interaction with the page (ie, before they've saved it). It winds up losing any changes that the user has made on the form. The lesson here is that the form should only be loaded from the model once when the user starts interacting with it; don't reload it on each page refresh.

  1. Constructor
  2. Load from model
    • I normally do this in the constructor.
  3. Validate
  4. Merge

None: Flow_of_control (last edited 2011-02-15 06:05:17 by localhost)