FacesRequestContextFacesRequestContext is a ThreadLocal singleton like FacesContext which can be called on the server to add scripts on the client.
General UsageA 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.
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