Alloy Showcase

alloy:outputScript

OutputScript is a UIOutput component that renders a <script> element with type="text/javascript". It supports all the features of h:outputScript and adds the use attribute which provides the ability to specify AlloyUI or YUI modules as dependencies.

General Usage

The script can be rendered in different positions on the page via the target attribute. Valid values include body, form, and head. The default value of this attribute is an empty (null) value which causes the <script> to be rendered inline (corresponding to its position in the view). Specifying body for the target attribute will cause the <script> to be rendered as close to the closing body tag as possible.

Source Code

Liferay Faces Alloy 3.0.1 + Liferay Faces Bridge Implementation 4.1.0 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14