• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to improve the performance of jsf datatable?

 
jomol jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whether anyone have any idea to improve the speed, while loading
the <webuijsf:table>??
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
jomol jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic