I've got datatable, which is pulling information from a database. I've added a button to the form that I want to use to force the table (id of "table") to refresh, however I'm not sure how to do it. What I have now is:
<h:commandButton value="Refresh">
<f:ajax render="table"/>
</h:commandButton>
My goal was to have the table component be forced to render when the button is clicked. However, it appears that either the click is being ignored, or it's returning cached data, rather than actually going out and calling my database code again.
What am I doing wrong?