File: departmentlist. Java
Public list getdocumments (){
Context context = new httpservletrequestcontext (getrequest ());
Limitfactory = new tablelimitfactory (context );
Limit = new tablelimit (limitfactory );
// Int pagesize = limit. getcurrentrowsdisplayed ();
// It may be a bug. When limit is generated, the value of currentrowsdisplayed is not assigned.
Int pagesize = limitfactory. getcurrentrowsdisplayed (0, 10 );
Getrequest (). setattribute ("totalrows", new INTEGER (page. gettotalnumberofelements ()));
Return list;
}
Result:
1. pagesize cannot be obtained from limit. It may be a bug that tracks the original tablelimit code. during initialization, currentrowsdisplayed is not assigned a value.
2. The "last page" is not displayed. This button
3. the Excel file cannot be exported. The following error occurs:
There is no export defined. This commonly happens if you do not declare the Export (export or exporttag) before the row and columns.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service