<rich:dataTable>
6.6.10.1. Description
The component is meant for rendering tables. It allows choosing data from a model and obtains built-in support of Ajax updates.
<rich:dataTable> component
Figure 6.37. <rich:dataTable> component
6.6.10.2. Key Features
A completely skinned table and child elements
Possibility to insert the complex subcomponents “colGroup” and “subTable”
Possibility to update a limited set of strings with Ajax
Sorting and filtering functionalities for a table columns
Extended table features, such as scrollable data, row selection, and column re-ordering, require the use of the <rich:extendedDataTable> component instead of <rich:dataTable>. Refer to the <rich:extendedDataTable> section for details on the differences between the two components.
<rich:subTable>
6.6.11.1. Description
The component is used for inserting subtables into tables with opportunity to choose data from a model and built-in Ajax updates support.
<rich:subTable> element
Figure 6.39. <rich:subTable> element
6.6.11.2. Key Features
Completely skinned table rows and child elements
Possibility to insert complex columnGroup subcomponents
Possibility to combine rows and columns inside
Possibility to update a limited set of rows with Ajax
<rich:subTable>是<rich:dataTable>的子组件,必须置于<rich:dataTable></rich:dataTable>里面,不能单独在一个页面
参考:
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_dataTable.html
https://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_subTable.html
本文介绍了RichFaces框架中的<rich:dataTable>和<rich:subTable>两个表格组件的功能特性。<rich:dataTable>用于渲染表格,并支持Ajax更新等功能;而<rich:subTable>作为其子组件,用于插入子表格。文章还对比了<rich:dataTable>与<rich:extendedDataTable>的区别。

1520

被折叠的 条评论
为什么被折叠?



