The JSF runtime includes c:choose implementation of the JSTL <c:choose> JSP tag. If JSTL sounds familiar (heavily used in JSP) then, it provides the same features for JSF too.

General Usage

Use together with c:when and c:otherwise to choose which portion of code will be rendered depending in a condition that can be set in test attribute from c:when tag handler.

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