0
commandButton
をクリックするとデータテーブルを表示したい。私のファイルは次のようになります:ボタンを押した後でデータテーブルを表示する
<h:commandButton value="List all students"></h:commandButton>
<h:panelGroup id="table-wrapper">
<h:dataTable value = "#{jSFDatabase.students}" var="s" border="1">
<h:column><f:facet name = "header"><h:outputText value="ID"/></f:facet>
<h:outputLabel value="#{s.id }"></h:outputLabel>
</h:column>
<h:column><f:facet name = "header"><h:outputText value="Firstname"/></f:facet>
<h:outputLabel value="#{s.firstname }"></h:outputLabel>
</h:column>
<h:column><f:facet name = "header"><h:outputText value="Lastname"/></f:facet>
<h:outputLabel value="#{s.lastname }"></h:outputLabel>
</h:column>
<h:column><f:facet name = "header"><h:outputText value="Birthdate"/></f:facet>
<h:outputLabel value="#{s.birthdate }"></h:outputLabel>
</h:column>
</h:dataTable>
</h:panelGroup>
どうすれば問題を解決できますか?私はデータテーブルを更新しようとしましたが、うまくいきませんでした。