Alloy Showcase


FacesRequestContext is a ThreadLocal singleton like FacesContext which can be called on the server to add scripts on the client.

General Usage

A script can be added to the response via FacesRequestContext.addScript(java.lang.String). The script will be written out at the bottom of the page (or in the <eval> section in a partial response) in the response of the current request.

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.17