Portal Showcase


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


Source Code

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

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

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 4.1.0 + Liferay Faces Portal 3.0.2-SNAPSHOT + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.17