pagedTable
Contains a PagedListData of objects to be rendered as a table. This tag uses a target action and event to sort the columns, by default set to the current action / event pair.
| Tag Information | |
|---|---|
| Tag Class | org.loom.tags.paged.PagedTableTag | 
| Body Content | scriptless | 
| Dynamic Attributes | true | 
| Example | <l:pagedTable data="${action.mortgages}" id="mortgages">
  <l:column sortable="false">
     <l:inputCheckbox name="selectedRows" class="selectRow 
		checkbox" value="${row.id}" renderLabel="false"/>
  </l:column>
  <l:column property="id" />
  <l:column property="name" action="Mortgages" event="edit">
     <l:param name="mortgage.id" value="${row.id}"/>
  </l:column>
  <l:column property="address" class="address"/>
</l:pagedTable> | 
                                    
Attributes
| Name | Description | Flags | 
|---|---|---|
| action | If set, this action will be used to generate the paged links. Default to the current action / event pair | 
                                             rtexprvalue 
                                         | 
                                    
| addUriParams | true to append all GET parameters included in the current request when building the table links, default true | 
                                             rtexprvalue 
                                         | 
                                    
| alternateRows | true to generate even/odd css classes for each row, default true | 
                                             rtexprvalue 
                                         | 
                                    
| class | HTML attribute | 
                                             rtexprvalue 
                                         | 
                                    
| collection | When set, this attribute will be converted to a single-paged data container. This is a convenient method when displaying non-paginated collections. | 
                                             rtexprvalue 
                                         | 
                                    
| data | the PagedListData object. Either this or listData should be set | 
                                             rtexprvalue 
                                         | 
                                    
| event | If set, this event will be used to generate the paged links. Default to the current action / event pair | 
                                             rtexprvalue 
                                         | 
                                    
| hash | If set, the table links will include this hash. | 
                                             rtexprvalue 
                                         | 
                                    
| href | If set, this link will be used as the paged link. Default to the current action / event pair | 
                                             rtexprvalue 
                                         | 
                                    
| id | HTML attribute. | 
                                             rtexprvalue 
                                         | 
                                    
| if | Set to false to skip tag execution. | 
                                             rtexprvalue 
                                         | 
                                    
| indexName | the name of the request attribute that will contain the current row index, default "index" | 
                                             rtexprvalue 
                                         | 
                                    
| linksCount | the number of page links to display, default 10 | 
                                             rtexprvalue 
                                         | 
                                    
| linksPosition | Where to put the links bar. Possible values are 
                                            top (default), bottom, both and none | 
                                        
                                             rtexprvalue 
                                         | 
                                    
| mapping | The mapping as action.event. This method is equivalent to 
                                            setting action and event separately.
                                         | 
                                        
                                             rtexprvalue 
                                         | 
                                    
| messagePrefix | the message prefix to be used, default "paged." | 
                                             rtexprvalue 
                                         | 
                                    
| overviewPosition | Where to put the overview message. Possible values are 
                                            top (default), bottom, both and none | 
                                        
                                             rtexprvalue 
                                         | 
                                    
| renderHeaders | true to render table headers, default true | 
                                             rtexprvalue 
                                         | 
                                    
| renderIfEmpty | false to render nothing if the list is empty. Default true | 
                                             rtexprvalue 
                                         | 
                                    
| rowClass | the HTML class of each generated TR. If set, any @{...} expression will be executed by the EL engine for each row | 
                                             rtexprvalue 
                                         | 
                                    
| rowName | the name of the request attribute that will contain the current row value, default "row" | 
                                             rtexprvalue 
                                         | 
                                    
| style | HTML attribute | 
                                             rtexprvalue 
                                         |