wood burning stoves*
The moose likes JSF and the fly likes How to improve the performance of jsf datatable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to improve the performance of jsf datatable?" Watch "How to improve the performance of jsf datatable?" New topic
Author

How to improve the performance of jsf datatable?

jomol jin
Greenhorn

Joined: Dec 12, 2007
Posts: 8
Whether anyone have any idea to improve the speed, while loading
the <webuijsf:table>??
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Is that the standard JSF datatable or some third party?

Anyway, if it is third party you might be able to get their code, if it is straight JSF, the datatable itself is pretty straightforward and fast, and any performance issues you would hit would be specific to your code that gathers the data than the JSF component.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
jomol jin
Greenhorn

Joined: Dec 12, 2007
Posts: 8
thanks for your response sir
yes i am using the standard one. Actually in my code what i have done is
on a button click i called up the stored procedure that returns a ResultSet, so that in a while loop i have created the class object and add each object to the list at the end of the loop, and this list is mentioned at the sourceData of <webuijsf:tableRowGroup> and at the runtime it takes 40-50 secs to load the datatable, do you have any suggestion to reduce this time?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

So you are seeing those times from the Stored Procedure, or from the Java code that loops through the JDBC ResultSet to create the list?

Basically, this is a backend issue and not a JSF issue.

Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to improve the performance of jsf datatable?