As far as I know, in JSF 1.2 there is no easy way to do this.
But you can use this workaround:
Create a css class with display: none :
.hidden { display: none; }
In your data table, specify the footerClass attribute as follows:
<h:dataTable footerClass="#{hideFooterCondition ? 'hidden' : ''}">
This way you can easily hide the footer when it will be.
In addition, if you want to reduce the data sent to the browser if the footer should not be present, you can use the same condition in the rendered attribute for the contents of the face:
<f:facet name="footer"> <rich:datascroller for="myDataTable" rendered="#{not hideFooterCondition}" /> </f:facet>
source share