I want to show the contents of the dataTable on clicking of the button. The results are getting populated but the problem is that the headers of the table are coming on each display. I want to hide the dataTable before the user clicks on it and make it visible only when it has some results.
For this i did the following things: 1. <h:dataTable var="car" value="#{bean.carList}" id="searchTable" bgcolor="#F1F1F1" border="1" cellpadding="5" cellspacing="3" width="100%" rendered="#{bean.show}">
2. And i m setting this proprty to true on the click event. But hen also it is not getting visible.