Last page of extremecomponents

Source: Internet
Author: User

Recently, after studying the limit pages of extremecomponents, I found that only the next page does not have the last page.

After careful research on the API of extremecomponents, we found that most of the tutorials provided on the network cannot be used directly. In some of the most critical but difficult to find, we will give you a small bug, in fact, let's take a closer look. People who do extremecomponents are not stupid enough to do paging, so they can get a small bug where paging is the most used. So think about it.

Make a record here.

In fact, it is very simple. If you do not have the last page, simply do it.

The view layer is the same. Here is only an example to illustrate the following action layer (the connenter layer in spring ).

<F: View>
<F: loadbundle Var = "text" basename = "# {departmentlist. bundlename}"/>
<H: Form ID = "editdepartment">
<EC: Table
Items = "departmentlist. attributes"
Action = "$ {pagecontext. Request. contextpath}/HR/departments.html"
ImagePath = "$ {pagecontext. Request. contextpath}/images/table/*. GIF"
Title = "$ {text ['userlist. title']}"
Rowsdisplayed = "10"
Form = "editdepartment" Var = "department"
Retrieverowscallback = "Limit"
Filterrowscallback = "Limit"
Sortrowscallback = "Limit"
View = "Limit"
Autoscaling deparameters = "false">
<EC: Row highlightrow = "true">
<EC: Column Title = "$ {text ['department. name']}" property = "name"/>
</EC: Row>
</EC: Table>
</H: Form>
</F: View>

In most of the Code provided on the network, this is an important parameter to be set in the action.

Getrequest (). setattribute ("totalrows", new INTEGER (page. gettotalnumberofelements ()));

Change

Getrequest (). setattribute ("Departmentlist. Attributes _ "+"Totalrows", new INTEGER (page. gettotalnumberofelements ()));

In this way, your extremecomponents has the last page. How is it? Simple? Haha...
In fact, the network replication rate in China is still quite high, and we do not know whether the search engine is convenient for us, or whether it makes it easier for us to find the redundant conclusions in the network ;(

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.