FacesContextHelperUtil is a convenience utility that reduces the boilerplate code required to add messages or scripts, find components, obtain request attributes, and more.

General Usage

A script can be added to the response via FacesContextHelperUtil.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 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20