• Post Reply Bookmark Topic Watch Topic
  • New Topic

breakpoint on scrollableDataTable  RSS feed

andersonptf java
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I've noticed something very strange in my application and I think this is causing degradation in the performance of it.

I have a xhtml that renders a list of object in a scrollableDataTable. In the "value" element I call a method to bring the values of my list. In this method I call another method and then return the list. It would be something like this:
java code:
public List<Consultant> getFilteredConsultants() {
return filteredConsultants;
xhtml code:
<rich:scrollableDataTable frozenColCount="2" height="500px"
width="920px" id="consultantList" rows="0" columnClasses="testCol"
value="#{availabilityReport.filteredConsultants}" var="consultant" sortMode="single">
<rich:column id="name" sortExpression="#{consultant.name}" width="140" >
<f:facet name="header">
<hutputText value="Name" />
<hutputLink value="https://emea.salesforce.com/#{consultant.id}" target="_blank"
rendered="#{consultant.id != null}">
<hutputText styleClass="#{consultant.nameCSSClass}" value="#{consultant.name}"/>

The problem is when I put a breakpoint in the getInitConsultants() method I notice that this method is being called as many times as the number of objects in my list ("#{availabilityReport.filteredConsultants}")

Is this right or there is some kind of bug in my code?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!