The component tree is a tree of UIComponent objects (RSF primitive components), which specify the abstract properties of the view to be rendered and the behaviour of its (UI) components, independent from the rendering technology to be used. In an MVC architecture, the component tree would constitute the controller layer - although it's worth noting that in RSF, since components have no behaviour there is actually no control performed here. This is in general a good thing since the "C" part of MVC was always the most problematic - controllers have the job of "brokering" between models and views and traditionally it is very hard to keep them from chaos given the large level of application knowledge they end up having. In RSF, virtually all "controller" logic is genericised and within the RSF framework itself, usually saving applications from having to write any.

In RSF, only a UIContainer may contain other components, although its function is primarily that of a placeholder for an IKAT branch point rather than specifically one of containing components. Non-container components may only appear at the leaves of the component tree.

The component tree is the second major argument of the IKAT renderer (as embodied in the ViewRender class), in addition to the condensed representation of the view template itself.

After rendering, the component tree is immediately discarded.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-) was last changed on 27-Mar-2007 21:04 by UnknownAuthor