Alloy Showcase

ui:decorate

Very similar to ui:composition, ui:decorate Facelet can add content to the current JSF page, but will add all the external elements to it (just the opposite as ui:composition does).

General Usage

For templating reusing, you can use template attribute pointing to a JSF page.
This text will be rendered This text will be rendered too This text comes from a template

Source Code

Liferay Faces Alloy 3.0.0 + Liferay Faces Bridge Implementation 4.0.0 + Showcase Common 3.0.0 + Liferay Faces Util 3.0.0 + Mojarra 2.2.13