• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

breakpoint on scrollableDataTable

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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() {
getInitConsultants();
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">
<h:outputText value="Name" />
</f:facet>
<h:outputLink value="https://emea.salesforce.com/#{consultant.id}" target="_blank"
rendered="#{consultant.id != null}">
<h:outputText styleClass="#{consultant.nameCSSClass}" value="#{consultant.name}"/>
</h:outputLink>
</rich:column>
</rich:scrollableDataTable>

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?

Regards
 
We're being followed by intergalactic spies! Quick! Take this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic