How does rendered
work? It hides h:form
content completely and does not show it if expression.list
is not empty.
<h:form id="stackForm" rendered="#{not empty expression.list}">
<p:orderList id="stack" value="#{expression.list}"...
...
How does rendered
work? It hides h:form
content completely and does not show it if expression.list
is not empty.
<h:form id="stackForm" rendered="#{not empty expression.list}">
<p:orderList id="stack" value="#{expression.list}"...
...
It doesn't hide it - it doesn't render it at all, if rendered
condition evaluates to false
. In your case, if #{expression.list}
is empty, form will not be rendered. Or, when rendered
is translated to plain English, read it as Render the form if expression.list
is not empty.