p

Tag dataTable

Component Information 
InfoValue
Component Typeorg.primefaces.component.DataTable
Handler Classorg.primefaces.component.datatable.DataTableHandler
Renderer Typeorg.primefaces.component.DataTableRenderer
DescriptionNone
Attributes 
NameRequiredTypeDescription
allowUnsortingfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Defines whether columns are allowed to be unsorted. Default is false.
ariaRowLabelfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Label to read by screen readers on checkbox and radio selection.
bindingfalsejakarta.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent)
An el expression referring to a server side UIComponent instance in a backing bean.
cellEditModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines the cell edit behavior, valid values are "eager" (default) and "lazy".
cellNavigationfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Enables cell navigation with the keyboard for WCAG and screen reader compliance. Default is true.
cellSeparatorfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Separator text to use in output mode of editable cells with multiple components.
clientCachefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Caches the next page asynchronously, default is false.
currentPageReportTemplatefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Template of the currentPageReport UI.
dataLocalefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
Locale to be used in features such as filtering and sorting, defaults to view locale.
dirfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines text direction, valid values are "ltr" (default) and "rtl".
disableContextMenuIfEmptyfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Decides whether to disable context menu or not if a table has no records.
draggableColumnsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Decides whether datatable columns can be reordered using dragdrop.
draggableRowsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
When enabled, rows can be reordered using dragdrop.
draggableRowsFunctionfalsejakarta.el.ValueExpression
(must evaluate to javax.el.MethodExpression)
Method expression to execute after dragging row.
editablefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Controls incell editing.
editingRowfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Defines if cell editors of row should be displayed as editable or not. Default is false meaning display mode.
editInitEventfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines a client side event to open cell on editable table.
editModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines edit mode, valid values are "row" (default) and "cell".
emptyMessagefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Text to display when there is no data to display. Default is "No records found."
escapeTextfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Defines if headerText and footerText values on columns are escaped or not. Default is true.
expandedRowfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Defines if row should be rendered as expanded by default.
exportRowTagfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
If XML data exporter in use, this allows customization of the row tag in the XML.
exportTagfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
If XML data exporter in use, this allows customization of the document tag in the XML.
filterByfalsejakarta.el.ValueExpression
(must evaluate to java.util.Map)
Property to be used for default filtering. Expects a single or a collection of FilterMeta.
filterDelayfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
Delay to wait in milliseconds before sending each filter query. Default is 300.
filteredValuefalsejakarta.el.ValueExpression
(must evaluate to java.util.List)
List to keep the filtered data if filtering is enabled.
filterEventfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Client side event to invoke filtering. If "enter" it will only filter after ENTER key is pressed. Default is keyup.
firstfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
Index of the first data to display.
frozenColumnsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
Number of columns to freeze, default is 0.
frozenRowsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
Number of rows to freeze starting from the beginning.
globalFilterfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Value of the global filter to use when filtering by default.
globalFilterFunctionfalsejakarta.el.ValueExpression
(must evaluate to javax.el.MethodExpression)
Custom implementation to globally filter a value against a constraint.
globalFilterOnlyfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
When true this will hide all column filters and allow all columns to be filtered by global filter only, defaults to false.
idfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Unique identifier of the component in a namingContainer.
initModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines when the datatable is initiated at client side, valid values are "load" (default) and "immediate".
lazyfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Defines if lazy loading is enabled for the data component.
liveResizefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Columns are resized live in this mode without using a resize helper.
liveScrollfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Enables live scrolling. Default is false.
liveScrollBufferfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
Percentage height of the buffer between the bottom of the page and the scroll position to initiate the load for the new chunk. Value is defined in integer and default is 0.
multiViewStatefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Whether to keep table state across views, defaults to false.
nativeElementsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
In native mode, datatable uses native radio-checkbox elements for row selection instead of extended ones.
onExpandStartfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Client side callback to execute before row expansion.
onRowClickfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Client side callback to execute after clicking row.
paginatorfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Enables pagination. Default is false.
paginatorAlwaysVisiblefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Defines if paginator should be hidden if total data count is less than number of rows per page. Default is true.
paginatorPositionfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Position of the paginator. Default is both.
paginatorTemplatefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Template of the paginator.
partialUpdatefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
When disabled, it updates the whole table instead of updating a specific field such as body element in the client requests of the dataTable. Default is true.
reflowfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Reflow mode is a responsive mode to display columns as stacked depending on screen size.
renderedfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Boolean value to specify the rendering of the component, when set to false component will not be rendered.
renderEmptyFacetsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Render facets even if their children are not rendered. Default is false.
resizableColumnsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Decides whether datatable columns are resizable or not.
resizeModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines the resize behavior, valid values are "fit" (default) and expand.
rowDragSelectorfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines the element used to reorder rows using dragdrop. Default selector is "td,span:not(.ui-c)"
rowEditModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines the row edit behavior, valid values are "eager" (default) and "lazy".
rowExpandModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines row expand mode, valid values are "single" and "multiple" (default).
rowHoverfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Adds hover effect to rows, default is false. Hover is always on when selection is enabled.
rowIndexVarfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Name of iterator to refer each row index.
rowKeyfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
Unique identifier of row data.
rowsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
Number of rows to display per page. Default value is 0 meaning to display all data available.
rowSelectorfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Client side check if rowclick triggered row click event not a clickable element in row content.
rowsPerPageTemplatefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Template of the rowsPerPage dropdown.
rowStatePreservedfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Keeps state of its children on a per-row basis. Default is false.
rowStyleClassfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Style class for each row.
saveOnCellBlurfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Saves the changes in cell editing on blur, when set to false changes are discarded.
scrollablefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Makes data scrollable with fixed header. Default is false.
scrollHeightfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Height for scrollable data.
scrollRowsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
No Description
scrollWidthfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Width for scrollable data.
selectAllFilteredOnlyfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
When enabled, toggle select will only apply on filtered items
selectionfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
Reference to the selection data.
selectionDisabledfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Disables row selection when true.
selectionModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Enables data selection, valid values are "single" and "multiple".
selectionPageOnlyfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
When using paginator and checkbox selection mode the select all checkbox in header will select the current page if true or all rows if false. Default true.
selectionRowModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Indicates how rows of a DataTable may be selected, when clicking on the row itself (not the checkbox / radiobutton from p:column). The value `new` always unselects other rows, `add` preserves the currently selected rows, and `none` disables row selection.
selectionTextDisabledfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Disables text selection on row click. Default is true.
showGridlinesfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
When enabled, cell borders are displayed. Default is false.
showSelectAllfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Whether to show the select all checkbox inside the column's header. Default is true.
sizefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Size of the table content, valid values are "small" and "large". Leave empty for regular size.
skipChildrenfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Ignores processing of children during lifecycle, improves performance if table only has output components, default is false.
sortByfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
Property to be used for default sorting. Expects a single or a collection of SortMeta.
sortModefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Defines sorting mode, valid values are "single" and "multiple" (default).
stickyTopAtfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Selector to position on the page according to other fixing elements on the top of the table. Default is null.
stripedRowsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Whether to display striped rows to visually separate content. Default is false.
stylefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Inline style of the main container.
styleClassfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Style class of the main container.
summaryfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Summary attribute for WCAG.
tabindexfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Position of the element in the tabbing order.
tableStylefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Inline style of the table element.
tableStyleClassfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Style class of the table element.
touchablefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Enable touch support if browser detection supports it. Default is false because it is globally enabled by default.
valuefalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
Datasource of the component.
varfalsejava.lang.String Name of the iterator variable that references each element in the data set.
virtualScrollfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Boolean)
Loads data on demand as the scrollbar gets close to the bottom. Default is false.
widgetVarfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Name of the client side widget.

Output generated by Vdldoc View Declaration Language Documentation Generator.