Code: Select all
<p:commandButton
value="COPY-GRADE"
style="font-size: 20px"
actionListener="#{viewController.loadCopyGradeList()}"
update="HeaderForm:CopyGradePanel"
/>
Code: Select all
<p:panel id="CopyGradePanel" rendered="#{viewController.getDisplayCopyGradePanel()}">
<p:dataTable>
I have a little searched and I have found that when a container (not only a Panel) is not rendered it cannot be updated !
The following code work well for me
Code: Select all
<p:panel id="CopyGradePanel" >
<p:dataTable rendered="#{viewController.getDisplayCopyGradePanel()}">
I have then searched in Primefaces PDF documentation and found some explanations for using <p:outputPanel>
Now I use the following code
Code: Select all
<p:outputPanel id="CopyGradePanel" >
<p:dataTable rendered="#{viewController.getDisplayCopyGradePanel()}">
My question is:
In which Primefaces version has this tricky feature be added ?
This question would be interesting for me because, if the response is "since 6.1", I need to review all the update="" of unrendered widget !