This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "breakpoint on scrollableDataTable" Watch "breakpoint on scrollableDataTable" New topic

breakpoint on scrollableDataTable

andersonptf java

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() {
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="#{}" width="140" >
<f:facet name="header">
<hutputText value="Name" />
<hutputLink value="{}" target="_blank"
rendered="#{ != null}">
<hutputText styleClass="#{consultant.nameCSSClass}" value="#{}"/>

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?

I agree. Here's the link:
subject: breakpoint on scrollableDataTable
It's not a secret anymore!