How to rerender a rich:dataTable

2k views Asked by At

I'm having trouble rerendering a <rich:dataTable> in JSF. I have a refresh link on my page that should refresh only the content

<h:commandLink action="#" value="#{messages['listmsgs.header.refresh']}">
    <a4j:support event="onclick" reRender="mesagesListTable" />
</h:commandLink>

But when I hit this button, nothing happens. When I press F5, nothing happens, too. If I click the link that leads me to the current page, nothing happens either. Only when I click a link to another page and go back (not via back button of the browser), the content is rerendered. How can I enforce that effect with a reRender?

1

There are 1 answers

3
Pablo On BEST ANSWER

Rerender the parent component of the dataTable. For example you could put the dataTable inside a h:panelGroup and reRender the panelGroup.