on 04-26-2010 11:56 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.