File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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?

subject: breakpoint on scrollableDataTable
jQuery in Action, 3rd edition