Dear Sir:

After we called the iBatis queryForPaginatedList(), we get a list of type PaginatedList.
Let us call it queryResultList;
The PaginatedList has several methods like:

void gotoPage(int i);
boolean nextPage();
boolean previosPage();

What does these methods mean ?
What I want is to get a list to be returned to client side to be displayed.
Let us call it toBeDisplayList;


1) I want to go to page 5, so I write the following statement
queryResultList.getoPage(5); What does this mean ?

Suppose the queryResultList have 600 element originally, and each page display 30 elements, after calling queryResultList.getoPage(5) , does the queryResultList become a subList that begins with the 121th element ?

2) I am in page 1, and I want to go to next page

boolean ok = queryResultList.nextPage();
The ok is true.

Does the queryResultList become the sublist that begins from 31th element ?

Do I need to call a subList method to return a sublist that I want to display ?

Thanks,

John Chien






begin:vcard
fn:John Chien
n:Chien;John
email;internet:[EMAIL PROTECTED]
tel;work:919-715-2510
version:2.1
end:vcard

Reply via email to