+

Search Tips   |   Advanced Search

Component hierarchy | Portal scripting interface

The component hierarchy is a tree of components on a page. Components can be containers and controls. A container holds other components, a control displays a portlet. The component hierarchy is accessed and modified using the Layout bean, referenced as $Layout in Jacl.

Only pages have a component hierarchy. The Layout bean always refers to the page selected in the Content bean. For more information, see Content hierarchy. When the Content bean has no current selection, or the current selection is not a page, the Layout bean cannot be used. Whenever a node is selected in the Content bean it clears the current selection of the Layout bean.

In the GUI, the component hierarchy of a page is manipulated by the customizer. The operations of the Layout bean allow for the definition of component hierarchies that the customizer cannot handle. The script developer must take care if the customizer is to be used alongside scripting.

The Layout bean offers the following functions: