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 Classorg.apache.myfaces.taglib.html.ext.HtmlDataTableTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

elements that are generated by the table.
Attributes
NameRequiredRequest-timeTypeDescription
alignfalsefalsejava.lang.StringNo Description
bgcolorfalsefalsejava.lang.StringNo Description
bindingfalsefalsejava.lang.StringComponent binding.
borderfalsefalsejava.lang.StringNo Description
cellpaddingfalsefalsejava.lang.StringNo Description
cellspacingfalsefalsejava.lang.StringNo Description
columnClassesfalsefalsejava.lang.StringNo Description
datafldfalsefalsejava.lang.StringNo Description
dataformatasfalsefalsejava.lang.StringNo Description
datasrcfalsefalsejava.lang.StringNo Description
dirfalsefalsejava.lang.StringNo Description
enabledOnUserRolefalsefalsejava.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.
firstfalsefalsejava.lang.StringNo Description
footerClassfalsefalsejava.lang.StringNo Description
forceIdfalsefalsejava.lang.StringIf true, this component will force the use of the specified id when rendering.
forceIdIndexfalsefalsejava.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.)
forceIdIndexFormulafalsefalsejava.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 !
framefalsefalsejava.lang.StringNo Description
headerClassfalsefalsejava.lang.StringNo Description
idfalsefalsejava.lang.StringEvery component may have an unique id. Automatically created if omitted.
langfalsefalsejava.lang.StringNo Description
onclickfalsefalsejava.lang.StringNo Description
ondblclickfalsefalsejava.lang.StringNo Description
onkeydownfalsefalsejava.lang.StringNo Description
onkeypressfalsefalsejava.lang.StringNo Description
onkeyupfalsefalsejava.lang.StringNo Description
onmousedownfalsefalsejava.lang.StringNo Description
onmousemovefalsefalsejava.lang.StringNo Description
onmouseoutfalsefalsejava.lang.StringNo Description
onmouseoverfalsefalsejava.lang.StringNo Description
onmouseupfalsefalsejava.lang.StringNo Description
preserveDataModelfalsefalsejava.lang.String Indicates whether the state of the whole DataModel should be saved and restored. Default: false
preserveSortfalsefalsejava.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
previousRowDataVarfalsefalsejava.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.
renderedfalsefalsejava.lang.StringIf false, this component will not be rendered.
renderedIfEmptyfalsefalsejava.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
rowClassesfalsefalsejava.lang.StringNo Description
rowCountVarfalsefalsejava.lang.String A parameter name, under which the rowCount is set in request scope similar to the var parameter.
rowIdfalsefalsejava.lang.String The id to use for
rowIndexVarfalsefalsejava.lang.String A parameter name, under which the current rowIndex is set in request scope similar to the var parameter.
rowOnClickfalsefalsejava.lang.String Defines a JavaScript onclick event handler for each table row
rowOnDblClickfalsefalsejava.lang.String Defines a JavaScript ondblclick event handler for each table row
rowOnKeyDownfalsefalsejava.lang.String Defines a JavaScript onkeydown event handler for each table row
rowOnKeyPressfalsefalsejava.lang.String Defines a JavaScript onkeypress event handler for each table row
rowOnKeyUpfalsefalsejava.lang.String Defines a JavaScript onkeyup event handler for each table row
rowOnMouseDownfalsefalsejava.lang.String Defines a JavaScript onmpusedown event handler for each table row
rowOnMouseMovefalsefalsejava.lang.String Defines a JavaScript onmousemove event handler for each table row
rowOnMouseOutfalsefalsejava.lang.String Defines a JavaScript onmouseout event handler for each table row
rowOnMouseOverfalsefalsejava.lang.String Defines a JavaScript onmouseover event handler for each table row
rowOnMouseUpfalsefalsejava.lang.String Defines a JavaScript onmouseup event handler for each table row
rowsfalsefalsejava.lang.StringNo Description
rowStylefalsefalsejava.lang.StringCorresponds to the HTML style attribute for the row tr tag.
rowStyleClassfalsefalsejava.lang.StringCorresponds to the HTML class attribute for the row tr tag.
rulesfalsefalsejava.lang.StringNo Description
sortAscendingfalsefalsejava.lang.String Value reference to a model property that gives the current sort direction.
sortColumnfalsefalsejava.lang.String Value reference to a model property that gives the current sort column name.
stylefalsefalsejava.lang.StringNo Description
styleClassfalsefalsejava.lang.StringCorresponds to the HTML class attribute.
summaryfalsefalsejava.lang.StringNo Description
titlefalsefalsejava.lang.StringNo Description
valuefalsefalsejava.lang.StringSupported types see JSF Spec 4.1.3
vartruefalsejava.lang.StringNo Description
visibleOnUserRolefalsefalsejava.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.
widthfalsefalsejava.lang.StringNo 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.