0

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}"...
   ...
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
andy007
  • 907
  • 1
  • 15
  • 41
  • 1
    In the future, try to ask a question about X (the concrete functional requirement) instead of Y (whatever you thought to be the right solution to X). See also http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem – BalusC May 18 '15 at 15:12

1 Answers1

1

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.

Predrag Maric
  • 23,938
  • 5
  • 52
  • 68
  • Well, I understand what it mean. The question is - if it does not render it at all then will not other element, which contains `update="stack"`, work properly? – andy007 May 18 '15 at 14:58