rich:datatable和 rich:subtable区别

<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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值