EC side is a JSP tag-based open source list component that can help us quickly implement JSP tags for large lists of walls. EC side can display lists (pagination), sorting, filtering.
The working principle is simple: the data set (Collection) of the list to be presented first, put into the request or PageContext or session (using the SetAttribute method. This work can be done in Action/servlet, It can also be done within the JSP page), and then the page jumps to the JSP page using the ecside tag, at which point Ecside can help you show the list you need. A simple process is usually this: 1, the client requests action/servlet. 2, the action accepts the request, calls the corresponding Bo/dao, executes the method of fetching the list data. 3. After obtaining the data (usually a vo/map list), put the data in the request (using the Requset.setattribute (Key,value) method. 4. Forward the request to a JSP page using the ecside tag. 5, Ecside will show the list.
description of properties in <ec:table></ec:table>
Property: TableId Description:
Sets the unique identity of the list, which defaults to "EC", and you must specify a different tableid for each list when there are multiple ecside lists within a page.
Properties: Items Description:
Sets the name to use when storing the collection of data to be displayed in memory
Attribute: var Description:
Sets the name of the variable that points to the bean (which is javabean) that corresponds to the current record in the data iteration
Properties: Action Description:
The action to be submitted when the list performs actions such as page-filtering sorting
Property: Insertaction Description:
The action to be submitted when the data is inserted when the list is editable
Property: Updateaction Description:
The action to be submitted when the data is updated when the list is editable
Property: Deleteaction Description:
The action to be submitted when the data is deleted when you can edit the list
Property: Shadowrowaction Description:
The action to be submitted when Shadowrow is displayed
Property: Theme Description:
Sets the theme used for the style of the list. The default is Ecside.
Property: Generatescript Description:
Whether the JS script required for Ecside is automatically generated. Optional True/false (default: TRUE)
Property: Useajax Description:
Whether to use AJAX technology for page flipping, filtering, sorting, and other operations. Optional True/false (default: TRUE)
Property: Dopreload Description:
Whether to use pre-read technology. Optional True/false (default: TRUE)
Properties: Classic Description:
Whether to use a traditional simple list. Optional True/false (default: false)
Property: Autoincludeparameters Description:
Whether the auto-hold attribute is turned on. Page turn filtering when sorting the form fields of the current sheet are preserved as hidden input (passed to the new page). Optional True/false (default: TRUE) for more instructions on this item see the original EC Handbook
Property: Includeparameters Description:
When auto-hold is turned off, the form fields that you want to be automatically retained are labeled, supported by multiple, split with ","
Property: Excludeparameters Description:
When "Auto-hold" is turned on, the form fields that want to not be automatically retained, support multiple, with "," Split supplement: If you understand the usefulness of autoincludeparameters, it is not difficult to understand the usefulness of the above two properties note: Excludeparameters than incl Udeparameters has a higher priority of excludeparameters= "a" includeparameters = "a" when a is still excluded, it is recommended to use excludeparameters as much as possible instead of Includepara meters, unless you are very specific about what you want to include. Improper use of includeparameters will make you forget to include something that must be included. excludeparameters= "Form attribute name 1, form attribute Name 2" (Form attribute name cannot contain half-width comma) includeparameters= "form property name 3, form property name 4"
Property: Toolbarcontent Description:
Sets the contents of the toolbar to be displayed, as well as the front and back positions of each element. The default state is Toolbarcontent= "Navigation|pagejump |pagesize|refresh save Add Del|export|extend|status"
Example toolbarcontent= "Pagejump|navigation|export|extend|status" the toolbar will not display the "Page line adjustment" box and "refresh save add and Delete buttons" At the same time the order will change and the default changes navigation navigation bar pagejump page Jump pagesize page line set refresh refresh current page Save Save list record add record del Delete record export export button area Extend custom extents status data information area
Property: Toolbarlocation Description:
Sets the location of the toolbar to be displayed (above or below the list). Optional Top/bottom/none, default top.
Property: Paginationlocation Description:
With Toolbarlocation.
Property: rowsdisplayed Description:
Sets the default number of records to display per page.
Property: Pagesizelist Description:
Sets the candidate values in the drop-down box that adjusts the number of records per page. For example: pagesizelist= "10,20,50,100,1000,2000,all" where all is added to the full display function. Example pagesizelist= "10,20,50"
Only 10 20 50 is displayed in the list. Max: number characteristics: pagesizelist= "Max:200,10,15,30,50,100,all" if 10--100 and all, an item that is larger than Max 200 is not displayed in the list.
You can also use only pagesizelist= "max:200" when the default setting is used and Max is limited.
Property: Nearpagenum Description:
Set the range of intervals before and after "near page navigation"
Property: maxrowsexported Description:
Set the maximum number of record bars allowed for export and print operations
Property: Resizecolwidth Description:
Whether to allow column widths to be adjusted. Optional True/false (default: TRUE)
Property: Mincolwidth Description:
Set the minimum allowable width for any column when adjusting the width of a column
Property: Height Description:
Sets the height of the list.
Property: MinHeight Description:
Set the minimum height of the list
Property: Xlsfilename Description:
Sets the filename of the file that exported the XLS. Do not allow export of XLS files when not specified
Property: Pdffilename Description:
Sets the filename of the file that exports the PDF. Do not allow export of PDF files when not specified
Property: Csvfilename Description:
Sets the filename of the file that exported the CSV. Do not allow export of CSV file when not specified
Property: Showprint Description:
Whether the Print button is displayed. True/false.
Property: Editable Description:
Whether to turn on the editable list feature.
Property: Sortable Description:
Whether to allow column sorting on a list
Property: Filterable Description:
Whether the filter function is turned on.
Properties: Title Description:
Set the title of the list, which appears above the list.
Property: Showtitle Description:
Whether to display the title of the list.
Properties: Style Description:
The style of the table that sets the list is equivalent to the style in the HTML.
Property: StyleClass Description:
Set the table's style class for the list, which is equivalent to the class in the HTML.
Properties: Locale Description:
Sets the localization information for the list. For example, FR_FR will make the list appear in French (provided the relevant resource file has been supplied correctly).
Property: Interceptor Description:
Custom list interceptors. The value is the corresponding interceptor implementation. This interceptor can be used to add or modify the properties of a list
Property: Retrieverowscallback Description:
Specifies the paging mechanism used by the list. The value can be a custom full callback class name, or it can be the abbreviation specified within the properties file
Property: Filterrowscallback Description:
Specifies the filtering mechanism used by the list. The value can be a custom full callback class name, or it can be a short name specified within the properties file
Property: Sortrowscallback Description:
Specifies the sorting mechanism used by the list. The value can be a custom full callback class name, or it can be the abbreviation specified in the properties file for the use of the above three properties in the "Ecside list rowscallback mechanism" document.
Properties: Width Description:
Specifies the width of the list. Width property equivalent to <table>
Property: ListWidth Description:
Specify the location of pagination bar. Acceptable values is up or down.
Property: Listheight Description:
Specify the location of pagination bar. Acceptable values is up or down.
Property: Height Description:
Specifies the height of the list. The Height property of the <table>. When the value is "Auto", the list heights are automatically adjusted as the list content. Valid only in non-Classic mode.
Property: Excludetool Description:
Specify whether or not to show the rows displayed bar. Acceptable values is "true" or "false".
Property: Showheader Description:
Whether to display the list header
description of properties in <ec:row></ec:row>
Property: RowId Description:
The ID of the list of rows, corresponding to the id attribute of <tr>.
Property: Recordkey Description:
Unique primary key value for the record for the row, primarily for gird list deletion
Property: Highlightrow Description:
Whether the row changes color when the mouse passes over a row.
Property: Selectlightrow Description:
If the mouse clicks on a row, the row is discolored.
Property: Interceptor Description:
Custom row interceptors. The value is the corresponding interceptor implementation. This interceptor can be used to add or modify the properties of a row
Property: OnDblClick Description:
Defines the mouse double-click event. Equivalent to the <tr> ondblclick event
Properties: OnClick Description:
Defines a click event for the mouse. The onclick event equivalent to <tr>
Property: onmouseout Description:
Defines the onmouseout event for the mouse. onmouseout event equivalent to <tr>
Property: onmouseover Description:
Defines the onmouseover event for the mouse. onmouseover event equivalent to <tr>
Properties: Style Description:
A style equivalent to <tr>.
Property: StyleClass Description:
Equivalent to <tr> class. <ec:extend> tag specific content can be any legitimate HTML code
Properties: Location Description:
Where to add the extension content. Top: Above the list (outside the list) bottom: Below the list (outside the list) leave blank: The Extend Extension Area <ec:extendrow> label Extension Line of the toolbar. Specific content can be any legal <tr> related HTML code
Properties: Location Description:
Where to add the extension content. Bottom: Below the list, and the list content body is left blank in a <table>: ibid.
<ec:column></ec:column Properties in >
Property: ColumnId Description:
ID of the cell, equivalent to the id attribute of <td>
Properties: Title Description:
The name of the column displayed in the list header.
Properties: Property Description:
Specifies that the column corresponds to the list bean< is the attribute (key) of javabean> (map).
Properties: Alias Description:
The alias of the column.
Property: Value Description:
The value of the column. Defaults to the current line of the list bean< or javabean> (map) property values.
Property: viewsAllowed Description:
Specifies that the current column will be displayed in those views, with the option to: HTML XLS CSV PDF print corresponding to the page display, export, print
Property: Viewsdenied Description:
Specifies that the current column will be hidden in those views, with the option to: HTML XLS CSV PDF print corresponding to the page display, export, print
Property: Tiptitle Description:
Cell prompt, equivalent to <td> 's title property
Properties: Group Description:
Whether to group the current column. True/false.
Property: Resizecolwidth Description:
Whether to allow the column width of the column to be adjusted invalid when table is classic
Property: MinWidth Description:
The minimum width, in pixels, allowed for the column when the column width is allowed to be resized.
Property: Sortable Description:
Whether the column is allowed to be sorted.
Property: Filterable Description:
Whether the column is allowed to be filtered.
Property: Editable Description:
Whether the cell allows editing.
Property: Cellvalue Description:
The value of the cell, as described in the "Guide to using ecside editable lists"
Property: Edittemplate Description:
When editing, use the name of the template as described in the "Ecside Guide to Editable lists"
Property: Editevent Description:
Enter the page event used by the edit turntable, by default double-click, see "Ecside Editable list usage Guide"
Property: Mappingitem Description:
The value of the implementation cell, and the mapping of the displayed content. The value of Mappingitem is the name of the map in memory that is used to map
Properties: Calc Description:
Specifies the statistical method used by the column. The value can be a custom Full calc class name, or it can be a specified abbreviation within the properties file, with the "," split between multiple. There are two kinds of total (sum) and average (averaging).
Property: Calctitle Description:
Specifies the statistic names for the statistics used by the column, such as totals, averages, and so on. Multiple splits with ",".
Property: Calcspan Description:
Counts the number of columns occupied by the statistic name cell of the statistic row. Equivalent to <td> colspan properties
Properties: Cell Description:
Specifies the implementation class for the cell that is used by the column in the list. The value can be a custom full cell class name, or it can be the abbreviation specified within the properties file
Property: Interceptor Description:
Custom column interceptors. The value is the corresponding interceptor implementation. This interceptor can be used to add or modify the properties of a column
Property: Escapeautoformat Description:
Whether automatic format conversions are not performed.
Properties: Format Description:
The format to use for the cell. For instance if used with a date cell and the format can be mm/dd/yyyy.
Properties: Parse Description:
Used if the format needs to be interpreted. For instance, a date needs to being parsed in the specific format, such as MM-DD-YYYY.
Property: OnDblClick Description:
Defines the mouse double-click event. Equivalent to the <td> ondblclick event
Properties: OnClick Description:
Defines a click event for the mouse. The onclick event equivalent to <td>
Property: onmouseout Description:
Defines the onmouseout event for the mouse. onmouseout event equivalent to <td>
Property: onmouseover Description:
Defines the onmouseover event for the mouse. onmouseover event equivalent to <td>
Properties: Style Description:
A style equivalent to <td>.
Property: StyleClass Description:
Equivalent to <td> class.
Properties: Width Description:
Sets the width of the column. Equivalent to <td> width property
Property: NoWrap Description:
Sets the width of the column. Equivalent to <td> nowrap properties
Long press the QR code in the identification chart, follow my public number ~