dataTable value gets called multiple times
I'm trying to share a value between two composite components on a jsf page. Each of the two composite components uses a request-scoped managed bean.
Currently also using ajax to pass a value from component 1 to component 2 so that component 2 displays something different.
I wonder if anybody knows how to achieve this or have any suggestions to go about it.
Edit 1: I have got passed that stage using dependency injection using @ManagedProperty. Now attempting to not directly call database when using h:dataTable because it gets recalled multiple times.
Edit 2: Problem solved, only load list from database if the list is null.