c:if

c:if has a similar behavior that c:choose does, but just with one condition, instead of having an alternative when the condition set in test is not met.

General Usage

Disabled

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets">

	<c:if test="#{not jSTLBackingBean.rendered}">
			Disabled
	</c:if>

</ui:composition>
@ManagedBean
@RequestScoped
public class JSTLBackingBean {

	private boolean rendered;

	public boolean isRendered() {
		return rendered;
	}

	public void setRendered(boolean rendered) {
		this.rendered = rendered;
	}

	public void toggleRendered(ActionEvent event) {
		this.rendered = !rendered;
	}

}
Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20