GeeCON Prague 2014*
The moose likes JSF and the fly likes breakpoint on scrollableDataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "breakpoint on scrollableDataTable" Watch "breakpoint on scrollableDataTable" New topic
Author

breakpoint on scrollableDataTable

andersonptf java
Greenhorn

Joined: Mar 03, 2010
Posts: 1
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">
<hutputText value="Name" />
</f:facet>
<hutputLink value="https://emea.salesforce.com/#{consultant.id}" target="_blank"
rendered="#{consultant.id != null}">
<hutputText styleClass="#{consultant.nameCSSClass}" value="#{consultant.name}"/>
</hutputLink>
</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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: breakpoint on scrollableDataTable