1. A method, in a data processing system, for binding an event handler with an event in association with a component of a hierarchical structure, comprising: receiving, in a processor of the data processing system, a structure document specifying an event type, an event handler, and a binding of the event handler with the event type; associating, by the processor, the event type and event handler with one or more nodes of a hierarchical model of the hierarchical structure stored in a storage device of the data processing system; binding, by the processor, the event handler with the event type for the one or more nodes in accordance with the hierarchical model; and generating, by the processor, one or more objects for implementing the hierarchical structure in a framework corresponding to the hierarchical model, wherein the structure document specifies the event binding of the event handler with the event type in a declarative manner.