Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top