Top "Conditional-rendering" questions

Conditionally choose which jsf tags to convert to DOM

Conditionally displaying JSF components

First, I am new to Java EE, came from a strong ASP .NET development background. I have gone through the …

jsf components conditional-rendering
How to conditionally render plain HTML elements like <div>s?

I'm trying to implement a composite component which either displays the information details of a user in plain text or …

html jsf-2 conditional-rendering
Ajax update/render does not work on a component which has rendered attribute

I'm trying to ajax-update a conditionally rendered component. <h:form> ... <h:commandButton value="Login" action="#{login.submit}"&…

jsf jsf-2 rendered-attribute conditional-rendering ajax-update
JSTL c:if doesn't work inside a JSF h:dataTable

I'm trying to use <c:if> to conditionally put a <h:outputLink> inside a <h:…

jsf datatable jstl conditional-rendering
How to use switch cases inside JSX: ReactJS

I have four components imported in my react app. How can i render one of the component conditionally (based on …

reactjs switch-statement conditional-rendering
Conditional rendering of non-JSF components (plain vanilla HTML and template text)

I'm trying to conditionally render a <tr> therefore I cannot use <h:panelGroup> as it will …

html jsf conditional-rendering
p:column rendered attribute does not seem to work with p:dataTable var

I have written a code like: <p:column headerText="Edit" width="40" rendered="#{(leaveDetails.strLeaveStatus == 'Canceled') or (leaveDetails.strLeaveStatus == 'Availed')}"&…

jsf primefaces datatable tablecolumn conditional-rendering
Conditionally render a component based on selectOneMenu value

Is there a way to render a component based on the current value the user has selected from a selectOneMenu …

jsf selectonemenu conditional-rendering
Conditionally render JSF components for printing

I want to print only a certain part of my webpage (so not the whole page). How can I achieve …

jsf printing conditional-rendering