Sometimes, it is desirable to include content from another view element as a single UI component. This enables us, for example, to use the
rendered attribute on the included content to support conditionally rendered markup more easily, and is convenient for situations where a single component is expected (such as inside the
<ui:component> tag is similar to the
<ui:composition> tag. In both cases, any content outside the tag is trimmed, but in the case of the
<ui:component> tag, the content will be rendered within a UI component. Let's look at some examples of using the Facelets
The following example demonstrates that a Facelet containing ...