RPCL Components Lifecycle

From HTML5 Builder
Jump to: navigation, search

RPCL components go through a series of different steps when loaded. When you develop components yourself, it is important that you understand which steps are those, in which order they happen, and whether they happen first on child or parent components.

These are those steps, in its execution order:

Unserialization

If components were previously serialized, they will be unserialized at this point. The unserialize() method will be called on each component, from parent to children.

Load

Components are then loaded. The load() method will be called on each component, from children to parent.

The load() method should be overriden to:

Preinitialization

This step occurs before the initialization. The preinit() method will be called on each component, from parent to children.

The preinit() method should be overriden to:

Initialization

Finally, initialization takes place. The init() method will be called on each component, from parent to children.

The init() method should be overriden to:

  • Process component’s events.
Personal tools