JSF: Display Attribute

I have a panelGroup with the rendered attribute. Why are component values ​​in the Panel group even called if the rendered attribute is set to false? Could I understand what attribute is represented here?

What I want to do: I have selectManyCheckbox in front of the PanelGroup, and everything in the groupGroup should only be done if the user selected values ​​in selectManyCheckbox and clicked the button. This will not work this way because the components in the Panel group depend on the values ​​that the user must select in selectManyCheckbox.

<h:selectManyCheckbox /> // for the user to choose
<h:commandButton /> // to render the panelGroup

<h:panelGroup rendered="#{someBean.render}">
  <h:dataTable value="#{someOtherBean.loadSomething(someObject)}" var="item">
    // ...
  </h:dataTable>         
</h:panelGroup>
+3
source share
1 answer

rendered , DOM . - JSF bean.

EDIT: :

, , , value bean, bean if .

public void loadSomething(Object someObject) {
  if (render()) {
    //Do loadSomething logic
  }
}
+6

All Articles