Tapestry

Tapestry5 jQuery provides jQuery Components and can fully replace Prototype and Scriptaculous by jQuery

jQuery DataTables

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

Parameters
Name Required Java Type Default Prefix Default Value Description
optionsfalseJSONObjectpropJSON Object for the DataTables Configuration
modefalseStringliteralfalseBy 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.
dataTableModelfalseDataTableModelpropIf 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.
DataTable Sample
Last Name First Name Occupation Date Of Birth
Spearce Britney SINGER Wed Dec 02 00:00:00 CET 1981
Clinton Bill POLITICIAN Mon Aug 19 00:00:00 CET 1946
Domingo Placido SINGER Tue Jan 21 00:00:00 CEST 1941
Einstein Albert SCIENTIST Fri Mar 14 00:00:00 CET 1879
Hemingway Ernest WRITER Fri Jul 21 00:00:00 CET 1899
Pavarotti Luciano SINGER Sat Oct 12 00:00:00 CET 1935
Reagan Ronald POLITICIAN Mon Feb 06 00:00:00 CET 1911
Picasso Pablo ARTIST Tue Oct 25 00:00:00 CET 1881
Pascal Blaise SCIENTIST Mon Jun 19 00:00:00 CET 1623
Newton Isaac SCIENTIST Sun Jan 04 00:00:00 CET 1643
Vivaldi Antonio COMPOSER Fri Mar 04 00:00:00 CET 1678
Paganini Niccolo MUSICIAN Sun Oct 27 00:00:00 CET 1782
Kepler Johannes SCIENTIST Thu Dec 27 00:00:00 CET 1571
Kafka Franz WRITER Tue Jul 03 00:00:00 CET 1883
Gershwin George COMPOSER Mon Sep 26 00:00:00 CET 1898
Last Name First Name Occupation Date Of Birth



DataTable Sample
Last Name First Name Occupation Date Of Birth
Loading data from server
Last Name First Name Occupation Date Of Birth