<p:commandButton value="Get Name List" update="nameinfo"/>
<p:dataTable id="nameinfo" var="nam" value="#{namefinder.dofind}"></p:dataTable>
- "namefinder" is managed bean [ @ManagedBean(name = "namefinder")]
"dofind" is the method which find the name list and it return the value as namefinder class object list
Problem is: "dofind" method is call 7 times.
why doing like this?