ICEfaces-EE ACE Components
Tag dataTable

Renders an HTML table element. This table and its associated components offers support for features like: scrolling, sorting, filtering, row selection, row editing, lazy loading and expandable subrows and subpanels.

For more information, see the DataTable Wiki Documentation.

Client Events
NameDescriptionSupported classes for argument
pageFired when the page is changed on the DataTable.javax.faces.event.AjaxBehaviorEvent
rowsPerPageFired when the rows per page is changed on the DataTable via the paginator control.javax.faces.event.AjaxBehaviorEvent
cellClickFired when a cell is clicked on the DataTable.javax.faces.event.AjaxBehaviorEvent
cellDblClickFired when a cell is double clicked on the DataTable.javax.faces.event.AjaxBehaviorEvent
selectFired when a row or cell is selected on the DataTable.javax.faces.event.AjaxBehaviorEvent
deselectFired when a row or cell is deselected on the DataTable.javax.faces.event.AjaxBehaviorEvent
sortFired when a change to the current sort occurs on the DataTable.javax.faces.event.AjaxBehaviorEvent
filterFired when a change to the current filters occurs on the DataTable.javax.faces.event.AjaxBehaviorEvent
reorderFired when a column is dragged and dropped into a new ordering.javax.faces.event.AjaxBehaviorEvent
editStartFired when a row is enabled for editing.javax.faces.event.AjaxBehaviorEvent
editSubmitFired when a row is submits its edits.javax.faces.event.AjaxBehaviorEvent
editCancelFired when a row cancels an in-progress edit.javax.faces.event.AjaxBehaviorEvent
expandFired when a child ExpansionToggler component is clicked to expand (Note: for nested tables, the execute value should be @form or @all for the expansion to work).javax.faces.event.AjaxBehaviorEvent
contractFired when a child ExpansionToggler component is clicked to contract (Note: for nested tables, the execute value should be @form or @all for the contraction to work).javax.faces.event.AjaxBehaviorEvent
pinFired when a column is added to the pinning region of the table.javax.faces.event.AjaxBehaviorEvent
unpinFired when a column is removed to the pinning region of the table.javax.faces.event.AjaxBehaviorEvent
Client events can be used with Client Behaviors and the ace:ajax tag.

Tag Information
Tag Classorg.icefaces.ace.component.datatable.DataTableTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

allowTableResizingnotruebooleanWhen 'resizableColumns' is enabled, allow the table to also increase or decrease in width proportionally to the column being resized. In the normal mode, when resizing a column, tables maintain their original widths, and a specific column is made wider by making other columns narrower. HTML has a limitation that prevents table columns to be narrower than their contents. This mode is mainly oriented to tables that have too many columns that they can't fit in the viewport width, resulting impossible to make a column wider in the normal mode due to this HTML limitation.
alwaysExecuteContentsnotruejava.lang.BooleanEnable the decoding of child components during table feature requests. The table attempts to decode children whenever it is executed, meaning whenever a parent region is submitted, or the table submits itself to paginate, make a selection, reorder columns, or any other feature. Decoding children during feature requests can result in unwanted input submission (during pagination for example), so by default this component suppresses child decoding whenever submitting itself. To cause decoding in the children of the table, use the row editing feature for row-scoped input decoding, ajax submit the form (or other table parent) for broad decodingor enable this option to submit during all table operations. Default = 'false'.
bindingnotruejavax.el.ValueExpressionUsing an EL expression, bind the component reference to a bean property, so that the component may be accessed in the bean.
captionnotruejava.lang.StringCauses a caption element to be rendered with the specified text, in order to facilitate better screen reader support and accessibility for this table.
clickableHeaderSortingnotruebooleanEnabling makes the entire header container the clickable region for sort events. Default = 'true'.
columnOrderingnotruejava.util.ListDefines a list of integers representing a rendering order for the Column children of the table.
columnPinningnotruebooleanEnable statically positioned columns along the left hand side of a scrollable table.
columnPinningControlsInHeadernotruebooleanEnable client controls to add column to the list of statically positioned columns.
columnsInheritPropertiesnotruebooleanTo reduce redundancy in markup, body columns can detect which header column that they correspond to, and inherit sorting, filtering and grouping properties from it. Previously, it was necessary to provide the same properties and values on both components, but now it's possible to specify them on the header column, and have the body column inherit them automatically. If a property is specified on the body column, then that will take precedence for it. Default = 'true'.
constantRefilternotruebooleanEnable to force creation of the filtered data set from the bound value every render. Alternately attempt to use hashCodes of the value property to detect changes and prompt refiltering. Default = 'false'.
currentPageReportTemplatenotruejava.lang.StringDefines a coded string representing the layout of the text displaying the current page. The keywords available are {currentPage}, {totalPages}, {startRecord}, {endRecord}, and {totalRecords}. Default is: "({currentPage} of {totalPages})".
disablednotruebooleanDisable all features of the data table. Default = 'false'.
doubleClickSelectnotruebooleanEnable to require a double-click to fire row/cell selection events.
emptyMessagenotruejava.lang.StringDefine a string to render when there are no records to display.
filterEventnotruejava.lang.StringDefines the Javascript event on which to trigger filter event, ex. 'keyup', 'blur', 'change' and 'enter'. Default = 'change'.
filterListenernotruejavax.el.MethodExpressionMethodExpression reference called whenever the table row is filtered. The method receives a single argument, TableFilterEvent.
filterValuenotruejava.lang.StringDefines the input to the column non-specific filter, coming from the client, or from the app via a value binding.
firstnotrueintZero-relative row number of the first row in the underlying data model to be displayed, or zero to start at the beginning of the data model. Default = '0'.
groupedFilterResultsnotruebooleanEnable to display all members of groups (as defined by ace:column groupBy) that contain a matching row during filtering.
headerColumnOrderingnotruejava.util.ListDefines a list of integers representing a rendering order for the Column children of the header columnGroup. This is separate from the columnOrdering property to maintain backwards compatibility and simplify application code when columns are added or removed. Both properties should be maintained in sync with each other.
heightnotruejava.lang.IntegerDefines a fixed height for the scrollable table in pixels. Deprecated; superseded by scrollHeight.
hiddenScrollableSizingnotruejava.lang.BooleanEnable the default handling of the scrollable table when rendered into a hidden page region. The table attempts to poll its hidden status, looking for when it is shown and then call the scrollable table sizing JavaScript. This can be expensive in environments of reduced JavaScript performance with many tables and a complex DOM. When this is disabled, upon revealing a hidden scrollable table, to ensure it is sized correctly the JS 'tableWidgetVar.resizeScrolling()' function must be called. Default = 'true'.
idnotruejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
lazynotruebooleanEnables lazy loading. Lazy loading expects the 'value' property to reference an instance of LazyDataModel, an interface to support incremental fetching of table entities.
liveScrollnotruebooleanEnables the table to insert additional rows as scrolling reaches the bottom of the table. The 'rows' property configures the number of new rows to be loaded. Note: This feature is deprecated as of version 3.1 and is not supported. This property will be removed in a future release.
pagenotrueintDefines the index of the current page, beginning at 1.
pageCountnotruejava.lang.IntegerDefines the maximum number of individual page links to display in paginator. Default = '10'.
paginatornotruebooleanEnables pagination on the table. Note that the paginator works by adjusting the 'first' and 'page' properties and that disabling the paginator will not return these properties to their defaults; instead leaving the table at the position that was paginated to. To return the table to the first page, 'first' must be set to 0, or 'page' must be set to 1.Alternately the table has a convenience method for this, DataTable.resetPagination().
paginatorAlwaysVisiblenotruebooleanDefines whether the paginator always displays, even when fewer then 1 page full of items are displayed.
paginatorPositionnotruejava.lang.StringDefines the location of the paginator if enabled. Available options are top, bottom, or the default, both. Default = 'both'.
paginatorTemplatenotruejava.lang.StringDefines a coded string representing the controls available as part of the paginator. Default is: "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}".
renderRowTabindexnotruebooleanRow tabindex is required for dataTable Find feature. If Find feature is not used and the tabindex interferes with tabbing through inputs in the table, set this to false. Default = 'true'.
renderednotruebooleanReturn true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. Default = 'true'.
reorderableColumnsnotruebooleanEnable reordering of the table columns via header dragging.
resizableColumnsnotruebooleanEnable resizing of the table columns via handles on the column headers.
rowIndexnotrueintZero-relative index of the row currently being accessed in the underlying DataModel, or -1 for no current row. Default = '0'.
rowIndexVarnotruejava.lang.StringThe request-scope attribute (if any) under which the data object index for the current row will be exposed when iterating.
rowSelectListenernotruejavax.el.MethodExpressionMethodExpression reference called whenever a table element is selected. The method receives a single argument, SelectEvent.
rowStateVarnotruejava.lang.StringThe request-scope attribute (if any) under which the table state object for the current row will be exposed when iterating. Default = 'rowState'.
rowStyleClassnotruejava.lang.StringDefine css classes for each row of the dataTable. EL can be used in this attribute to produce conditional row styling.
rowUnselectListenernotruejavax.el.MethodExpressionMethodExpression reference called whenever a table element is deselected. The method receives a single argument, UnselectEvent.
rowsnotrueintThe number of rows to be displayed, or zero to display the entire set of available rows. Default = '0'.
rowsPerPageTemplatenotruejava.lang.StringDefines a list of comma separated integer values that represent the options of "number of items per page" presented to the user. "all" is a special keyword that allowsa user to reset the pagination offset show all rows. The "all" option label is defined by the message key "org.icefaces.ace.component.datatable.ALL_LABEL". Any non-numerical value other than "all" will cause a NumberFormatException.
scrollHeightnotruejava.lang.IntegerDefines a fixed height for the scrollable table in pixels. Default = '100'.
scrollWidthIE7notruejava.lang.StringWhen using the DataTable scrollable mode, the IE7 configuration gives an equal width to evey column, and defaults to 100% width. This implies there is never a horizontal scrollbar for the table, unless a fixed width is used on the table or the container of the table. Ratherthan doing this via CSS, this property will apply (via JS) the given width and necessary overflow rules to the ancestors of the DataTable elements to produce a scrollbar.Other browsers will produce a horizontal scrollbar automatically when required and this property is ignored.
scrollablenotruebooleanEnabling renders a table that overflows the fixed height and adds a scrollbar. Note, used in combination with multi-row headers defined by a ColumnGroupcomponent, it is assumed that every body column of the table will have a associated single column spanning header column on the bottom row of the multi-row header. This is to allow for appropriate sizing of the scrollable column and the associated header td. Note,in IE7, the CSS/DOM engine doesn't suport the dynamic adjustments required for this feature andinstead the feature uses a fixed, equal size for each column of the table.
selectionModenotruejava.lang.StringDefines a code word indicating method of table element selection. Available values include: "multiple", "single", "enhMultiple", "cellblock", "cellrange", "multiplecell" and "singlecell". The enhanced multiple mode ("enhMultiple") works in the following way. Single clicking a row will select it and deselect all other rows. No toggling occurs unless the Ctrl/Command key is held, in which case the other rows won't be deselected. Holding the Shift key will cause the range of rows between the last selected row and the current one to be selected.
singleSortnotruebooleanDisables sorting for multiple columns at once. Sorting is enabled by the use of sortBy on ace:column components. Default = 'false'.
stateMapnotrueorg.icefaces.ace.model.table.RowStateMapDefines a map of your row data objects to UI states. Row-level features (selection, expansion, etc.) are manipulable through this repository.
staticHeadersnotruejava.lang.BooleanEnable the default scrollable table behaviour of using JavaScript to size a table header and footer that are in a fixed position regardless of table body scrolling. Default = 'true'.
stylenotruejava.lang.StringCustom inline CSS styles to use for this component. These styles are generally applied to the root DOM element of the component. This is intended for per-component basic style customizations. Note that due to browser CSS precedence rules, CSS rendered on a DOM element will take precedence over the external stylesheets used to provide the ThemeRoller theme on this component. If the CSS properties applied with this attribute do not affect the DOM element you want to style, you may need to create a custom theme styleClass for the theme CSS class that targets the particular DOM elements you wish to customize.
styleClassnotruejava.lang.StringCustom CSS style class(es) to use for this component. These style classes can be defined in your page or in a theme CSS file.
tabIndexnotruejava.lang.IntegerDefines a tabindex to be shared by all keyboard navigable elements of the table. This includes sort controls, filter fields and individual rows themselves. Default = '0'.
toggleOnInvalidEditnotruejava.lang.BooleanEnable the the client to revert the edited row with the default state following a failed edit. By default when validation fails during a row editing request the row remains in editing mode. Default = 'false'.
valuenotruejava.lang.ObjectThe DataModel instance representing the data to which this component is bound, or a collection of data for which a DataModel instance is synthesized.
varnotruejava.lang.StringThe request-scope attribute (if any) under which the data object for the current row will be exposed when iterating.
widgetVarnotruejava.lang.StringThe JavaScript global component instance name. Must be unique among components on a page.

No Variables Defined.

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.