Fork me on GitHub

Reference


You will find below the table tag attributes full reference.

Name Description Type Required Type Default
htmlTableId DOM id of the HTML table. Basic yes java.lang.String
data Collection of data used to populate the table. Basic yes java.util.Collection
dataObjectId Name of the object representing the current row. Basic yes java.lang.String
cssClass CSS class(es) of the HTML table. Extra no java.lang.String table table-striped table-bordered table-condensed (Twitter's Boostrap CSS classes)
style CSS style of the HTML table. Extra no java.lang.String
htmlRowIdPrefix String which is prepended to the htmlRowIdBase attribute. Extra no java.lang.String
htmlRowIdSufix String which is appended to the htmlRowIdBase attribute. Extra no java.lang.String
htmlRowIdBase Useful if you want each row has a DOM id. This attribute is evaluated as an object's property of the data attribute. Extra no java.lang.String
info Enable or disable the table information display. This shows information about the data that is currently visible on the page, including information about filtered data if that action is being performed. Embedded no java.lang.Boolean true
paginate Enable or disable pagination. Embedded no java.lang.Boolean true
lengthPaginate If paginate is enabled, allows the end user to select the size of a formatted page from a select menu (sizes are 10, 25, 50 and 100). Embedded no java.lang.Boolean true
filter Enable or disable filtering of data. Embedded no java.lang.Boolean true
labels Base URL of an AJAX loaded file which contains all the labels used in tables. This attribute is the value for the sUrl DataTable parameter.
Warning This attribute is evaluated with <c:url>
Extra no java.lang.String
extraConf Base URL of an AJAX loaded DataTable configuration file which is merged with the default configuration (thanks to the JQuery $.extend function).
Warning This attribute is evaluated with <c:url>
Extra no java.lang.String
extraFile Base URL of an AJAX loaded Javascript file which is then executed (thanks to the JQuery $.getScript function).
Warning This attribute is evaluated with <c:url>
Extra no java.lang.String
addButton Enable or disable an add link on the top of the table. Extra no java.lang.Boolean true
addButtonUrl If addButton is enabled, used to fill href attribute of a link.
Warning This attribute is evaluated with <c:url>
Extra no java.lang.String
addButtonLabel If addButton is enabled, used to fill the link description. Extra no java.lang.String
addButtonCssClass If addButton is enabled, appended to the CSS attribute of the link. Extra no java.lang.String
autoWidth Enable or disable automatic column width calculation. Embedded no java.lang.Boolean true
deferRender Defer the creation of the table elements for each row until they are needed for a draw. Embedded no java.lang.Boolean false
jqueryUI Enable jQuery UI ThemeRoller support. Embedded no java.lang.Boolean false
processing Enable or disable the display of a 'processing' indicator when the table is being processed (e.g. a sort). Embedded no java.lang.Boolean false
sort Enable or disable sorting of columns. Embedded no java.lang.Boolean true
sortClasses Enable or disable the addition of the classes 'sorting_1', 'sorting_2' and 'sorting_3' to the columns which are currently being sorted on. Embedded no java.lang.Boolean true
stateSave Enable or disable state saving. Embedded no java.lang.Boolean false
dom Specify exactly where in the DOM you want DataTables to inject the various controls it adds to the page. Embedded no java.lang.String lfrtip (when jQueryUI is false) or <'H'lfr>t<'F'ip> (when jQueryUI is true)
paginationType Choice between the two different built-in pagination interaction methods ('two_button' or 'full_numbers') which present different page controls to the end user. Embedded no java.lang.String : two_button or full_numbers two_button
cookiePrefix Override the default prefix that DataTables assigns to a cookie when state saving is enabled. Embedded no java.lang.String SpryMedia_DataTables_

The column tag represents a column of the table.

You can write any code in the body of the column attribute. It will be evaluated.

You will find below the column tag attributes full reference.

Name Description Required Type Default
property Name of the property in the bean contained in the data attribute. no java.lang.String
title Title of the column (th) no java.lang.String
style HTML style attribute which will affect every td of the column. no java.lang.String
headerStyle HTML style attribute which will affect the th cell. no java.lang.String
cssClass CSS class which will affect every td of the column. no java.lang.String
headerCssClass CSS class which will affect the th cell. no java.lang.String
sortable Enable or disable sorting on the column. no java.lang.Boolean false
filterable Enable or disable filtering on the column.
Warning It requires the TableTools plugin (JS and CSS files)
no java.lang.Boolean false
filterType If filterable is enabled, allows to change the filter type between select (default) and input. no java.lang.String select
filterCssClass If filterable is enabled, allows to add CSS class to the filter field. no java.lang.String

Basic : basic taglib feature Embedded : DataTables embedded native feature Extra : Taglib extra feature