Simulation project 1 (2) & understanding and analysis of the foreground Interface

Source: Internet
Author: User
<Table id = "TB" border = "0" cellspacing = "0" cellpadding = "0" width = "100%"> <EC: table items = "resultlist" autoscaling deparameters = "$ {empty Param. autoinc} "Var =" tdestu "Action =" $ {basepath}/exchange/tester/list. action "Title =" "minheight =" 345 "listwidth =" 100% "Limit =" Limit "sortrowscallback =" Limit "resizecolwidth =" true "filterrowscallback =" Limit "csvfilename =" .csv "Style =" table-layout: fixed "<EC: Row recordkey =" $ {tdestu. sno} "> <EC: Column cell =" checkbox "headercell =" checkbox "alias =" IDS "style =" text-align: center; "value =" $ {tdestu. sno} "width =" 50px "viewsallowed =" html "/> <EC: column property = "Sno" Title = "student ID" width = "100px" style = "text-align: left; "> <a href =" # "class =" blank_a "onclick =" Return Update ('$ {tdestu. sno} '); "> <font color =" #880000 ">$ {tdestu. sno} </font> </a> </EC: column> <EC: column property = "sname" Title = "name" width = "100px" style = "text-align: Left;" >$ {tdestu. name} </EC: column> <EC: column property = "Sage" Title = "Age" width = "100px" style = "text-align: left; ">$ {tdestu. age} </EC: column> <EC: column property = "ssex [=] [int]" width = "80px" Title = "gender" style = "text-align: left; "edittemplate =" ecs_t_ssex "> <C: Set Var =" ssexkey "> <C: Out escapexml = 'false' value =" $ {tdestu. sex} "> </C: Out> </C: Set >$ {testsextypemap [ssexkey]} </EC: column> </EC: Row> </EC: table>

Learn the above Code as follows:

1. understanding of related labels

<EC: Some attributes in table:

Items: as mentioned earlier.

Action: This attribute is used to specify the targeted path for page turning, export, and query requests. You do not need to put the parameter after it, because EC will save the data in the request.

VaR: The table traverses all columns. You can use the VaR attributeBean corresponding to the current rowRange from set to page

Autoscaling deparameters: whether to enable the "auto-retain" feature. when filtering and sorting by pages, the form fields of the current page will be retained in the form of hiddeninput (passed to the new page ). optional; true/false (default: true ).

Retrieverowscallback: Specifies the paging mechanism used by the list.

Filterrowscallback specifies the filtering mechanism used by the list.

Sortrowscallback specifies the sorting mechanism used by the list.

Other tags can be found in the document.

 

<EC: attributes in row:

Recordkey: the unique primary key value of the record corresponding to the row.

 

<EC: attributes in column:

The alias of the alias column.

The value of the bean attribute corresponding to the current default row.

 

Ii. Check multiple row (ID) Operations

First<EC: Row attributesSet recordkey.

Second, a row is added.<EC: ColumnUsed to store a check box(Checkbox). Used to record all selected IDs.

 

Iii. <C: set definition method

<C: setvar = "ssexkey">

<C: outescapexml = 'false' value = "$ {tdestu. Sex}"> </C: Out>

</C: Set>

It is equivalent to defining a set. The key is ssexkey and the value is $ {tdestu. Sex}

 

4. about the problem of converting the database (0, 1) into a page (male, female) by gender

Ideas:

1. A map array is created in the background. Two maps (0, 1) correspond to (male, female ).

2. See a set on the page to store keys.

3. The map (key) sent from the page call shows men and women.


Simulation project 1 (2) & understanding and analysis of the foreground Interface

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.