I'm using h:datatable, here's the revelant line of my code:
<h:dataTable value="#{account.latestIncomes}" var="mov" >
.....
</h:dataTable>
then I have a Request scoped managedBean with the getter for the latest Incomes:
public List<Movs> getlatestIncomes() {
if (incomes == null)
incomes = this.cajaFacade.getLatestIncomes(20);
return incomes;
}
this getter gets called 8 times, and I'm not using it anywhere else, only on the value for the dataTable. Why is this happening? If you need more code please ask. But that's the only place where I use that property.