您的位置:首页 > 其它

rich:datatable和 rich:subtable区别

2017-01-04 12:55 253 查看
<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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: