There a these common ways to detect in a JSF page if a project is in development stage or not:
<h:panelGroup rendered="${ (facesContext.application.projectStage eq 'Development') ? true : false }"> <h:outputText value="Development stage" /> </h:panelGroup> <h:panelGroup rendered="${ facesContext.application.projectStage eq 'Development' }"> <h:outputText value="Development stage" /> </h:panelGroup> <h:panelGroup rendered="#{ facesContext.isProjectStage('Development') }"> <h:outputText value="Development stage" /> </h:panelGroup> <c:if test="${ facesContext.application.projectStage == 'Development' }"> <h:outputText value="Development stage" /> </c:if> |