<h:dataTable value=#{myBean.xxx}>: getXxx() get called so many times, why?
问题 Simple piece of code about dataTable . CentralFeed is SessionScoped Bean, and PostComment is RequestScoped Bean <h:form id="table"> <h:dataTable value="#{CentralFeed.profileComments}" var="item"> <h:column> <h:outputText value="#{item.comment}"/><br/> <h:inputTextarea value="#{item.newComment}" rows="2"/><br/> <h:commandButton value="Post" action="#{PostComment.postReply(item)}" /> </h:column> </h:dataTable> </h:form> inside CentralFeed.java private List<NewsFeed> profileComments = null;