DataTables Component

Description

This component will display a dynamic table, like the Tapestry Grid component.
It has the same behavior as the Grid component : same parameters, we
can override the rendering of a header or a cell ..., but add some additional parameters.
Also, it provides an ajax mode to handle lazy loading or server-side pagination.
In the current version, you can not use the DataTable component inside a Tapestry Form.

Links

By default (mode=false), all the datas are added to the generated HTML (in a table element). But if mode=true, a ajax request will be send in order to get a part of the datas (when we want to filter, sort ...). This feature is suitable for lazy loading or server-side pagination. Note that if mode=true, the iteration properties (bound to 'row' and 'index' parameters) expected to be used in block parameters (<p:fieldNameCell>...</p:fieldNameCell>) must be annotated with '@Environmental'. You can define your own response by using the dataTableModel parameter.

dataTableModel

false

DataTableModel

prop

If you specify this parameter, the DataTable component will use the sendResponse method when an ajax request is sent, in order to send the datas. The DataTable component has a default implementation of this DataTableModel Interface.