<p:dataList paginator="true" value="{bean.lista}"
var="lista">
</:dataList>
<h:outputText value="qualquerCoisa" id="teste"/>
How do I update the outputText 'test' every time the dataList page changes? , example pagination 1,2,3,4 [...] when the user changes from page 1 to page 2 update the component 'test', when to change to another page any update again? The component must be outside the dataList or dataTable and has to be when changing the pagination, without buttons or anything of the type.