File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 17249
    
    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: 17249
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to improve the performance of jsf datatable?
 
Similar Threads
Java Concepts :confused:
IBM buying Sun Microsystems : Impact on Certifications
More Friday Competitions: Mansion Impossible
What's new in J2SE5.0 [Mustang]
Knuth's earth-shattering announcement