cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Java Table Paging Unleashed: Optimizing Heavy Table Performance

Sunitkroy
Participant
0 Kudos

Hi All,

I am following the document 'Web Dynpro Java Table Paging Unleashed: Optimizing Heavy Table Performance' by Bertram Ganz. I am in CE 7.11 EhP1. My question is : If I execute my Webservice model in the loadResultsForPage(int fromIndex) method of SomePagingBOLService.java( I am following the tutorial related to that doc), will the related model nodes get populated with data as it generally happens when we execute a model class in my controller class?

Another question is, I am not sure how to replace the following code that was mentioned in the related tutorial.

if (!searchResultCache.containsKey("" + fromIndex)) {

// >>>>>> This code just simulates backend data retrieval.

// >>>>>> Execute backend service to retrieve page data here!

for (int i = fromIndex, j = fromIndex + pageSize; i < j; i++) {

SearchResultItem item = new SearchResultItem();

item.setId("" + i);

item.setValue(VALUE[(new Double(Math.random() * 10)).intValue() % 3]);

searchResultCache.put("" + i, item);

}

I know I have to execute my service here but do I need to execute it inside for loop?

Thanks for any insightful answers.

Sunit

Edited by: Sunit K Roy on Apr 28, 2010 4:53 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

if you find the solution yourself and mark the question answered, please do post the solution, so other members of SDN can learn from your progress. Thankk you!

Jan