## t
Tag dataTable

Extended data_table that adds some additional features to the standard data_table action: see attribute descriptions for preserveDataModel, sortColumn, sortAscending and preserveSort.

Tag Information
Tag Class | org.apache.myfaces.taglib.html.ext.HtmlDataTableTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
align | false | false | `java.lang.String` | No Description
bgcolor | false | false | `java.lang.String` | No Description
binding | false | false | `java.lang.String` | Component binding.
border | false | false | `java.lang.String` | No Description
cellpadding | false | false | `java.lang.String` | No Description
cellspacing | false | false | `java.lang.String` | No Description
columnClasses | false | false | `java.lang.String` | No Description
datafld | false | false | `java.lang.String` | No Description
dataformatas | false | false | `java.lang.String` | No Description
datasrc | false | false | `java.lang.String` | No Description
dir | false | false | `java.lang.String` | No Description
enabledOnUserRole | false | false | `java.lang.String` | If user is in given role, this component will be rendered normally. If not, no hyperlink is rendered but all nested tags (=body) are rendered.
first | false | false | `java.lang.String` | No Description
footerClass | false | false | `java.lang.String` | No Description
forceId | false | false | `java.lang.String` | If true, this component will force the use of the specified id when rendering.
forceIdIndex | false | false | `java.lang.String` | If false, this component will not append a '[n]' suffix (where 'n' is the row index) to components that are contained within a "list." This value will be true by default and the value will be ignored if the value of forceId is false (or not specified.)
forceIdIndexFormula | false | false | `java.lang.String` | A formula that overrides the defaut row index in the construction of table's body components. Example : #{myRowVar.key} Warning, the EL should evaluate to a unique value for each row !
frame | false | false | `java.lang.String` | No Description
headerClass | false | false | `java.lang.String` | No Description
id | false | false | `java.lang.String` | Every component may have an unique id. Automatically created if omitted.
lang | false | false | `java.lang.String` | No Description
onclick | false | false | `java.lang.String` | No Description
ondblclick | false | false | `java.lang.String` | No Description
onkeydown | false | false | `java.lang.String` | No Description
onkeypress | false | false | `java.lang.String` | No Description
onkeyup | false | false | `java.lang.String` | No Description
onmousedown | false | false | `java.lang.String` | No Description
onmousemove | false | false | `java.lang.String` | No Description
onmouseout | false | false | `java.lang.String` | No Description
onmouseover | false | false | `java.lang.String` | No Description
onmouseup | false | false | `java.lang.String` | No Description
preserveDataModel | false | false | `java.lang.String` | Indicates whether the state of the whole DataModel should be saved and restored. Default: false
preserveSort | false | false | `java.lang.String` | Indicates whether the state of the sortColumn and sortAscending attribute should be saved and restored and written back to the model during the update model phase. Default: true
previousRowDataVar | false | false | `java.lang.String` | A parameter name, under which the previous RowData Object is set in request scope similar to the rowIndexVar and rowCountVar parameters. Mind that the value of this request scope attribute is null in the first row or when isRowAvailable returns false for the previous row.
rendered | false | false | `java.lang.String` | If false, this component will not be rendered.

renderedIfEmpty

false

false

`java.lang.String`

Indicates whether this table should be rendered if the underlying DataModel is empty. You could as well use rendered="#{not empty bean.list}", but this one causes the getList method of your model bean beeing called up to five times per request, which is not optimal when the list is backed by a DB table. Using renderedIfEmpty="false" solves this problem, because the MyFaces extended HtmlDataTable automatically caches the DataModel and calles the model getter only once per request. Default: true

rowClasses | false | false | `java.lang.String` | No Description
rowCountVar | false | false | `java.lang.String` | A parameter name, under which the rowCount is set in request scope similar to the var parameter.
rowId | false | false | `java.lang.String` | The id to use for
elements that are generated by the table.
rowIndexVar | false | false | `java.lang.String` | A parameter name, under which the current rowIndex is set in request scope similar to the var parameter.
rowOnClick | false | false | `java.lang.String` | Defines a JavaScript onclick event handler for each table row
rowOnDblClick | false | false | `java.lang.String` | Defines a JavaScript ondblclick event handler for each table row
rowOnKeyDown | false | false | `java.lang.String` | Defines a JavaScript onkeydown event handler for each table row
rowOnKeyPress | false | false | `java.lang.String` | Defines a JavaScript onkeypress event handler for each table row
rowOnKeyUp | false | false | `java.lang.String` | Defines a JavaScript onkeyup event handler for each table row
rowOnMouseDown | false | false | `java.lang.String` | Defines a JavaScript onmpusedown event handler for each table row
rowOnMouseMove | false | false | `java.lang.String` | Defines a JavaScript onmousemove event handler for each table row
rowOnMouseOut | false | false | `java.lang.String` | Defines a JavaScript onmouseout event handler for each table row
rowOnMouseOver | false | false | `java.lang.String` | Defines a JavaScript onmouseover event handler for each table row
rowOnMouseUp | false | false | `java.lang.String` | Defines a JavaScript onmouseup event handler for each table row
rows | false | false | `java.lang.String` | No Description
rowStyle | false | false | `java.lang.String` | Corresponds to the HTML style attribute for the row tr tag.
rowStyleClass | false | false | `java.lang.String` | Corresponds to the HTML class attribute for the row tr tag.
rules | false | false | `java.lang.String` | No Description
sortAscending | false | false | `java.lang.String` | Value reference to a model property that gives the current sort direction.
sortColumn | false | false | `java.lang.String` | Value reference to a model property that gives the current sort column name.
style | false | false | `java.lang.String` | No Description
styleClass | false | false | `java.lang.String` | Corresponds to the HTML class attribute.
summary | false | false | `java.lang.String` | No Description
title | false | false | `java.lang.String` | No Description
value | false | false | `java.lang.String` | Supported types see JSF Spec 4.1.3
var | true | false | `java.lang.String` | No Description
visibleOnUserRole | false | false | `java.lang.String` | If user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.
width | false | false | `java.lang.String` | No Description

Variables
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.