x
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

Attributes
NameRequiredRequest-timeTypeDescription
idfalsefalsejava.lang.StringEvery component may have an unique id. Automatically created if omitted.
renderedfalsefalsejava.lang.StringIf false, this component will not be rendered.
bindingfalsefalsejava.lang.StringComponent binding.
transientfalsefalsejava.lang.StringIf true, this component will not be saved during state saving.
dirfalsefalsejava.lang.StringNo Description
langfalsefalsejava.lang.StringNo Description
stylefalsefalsejava.lang.StringNo Description
titlefalsefalsejava.lang.StringNo Description
styleClassfalsefalsejava.lang.StringCorresponds to the HTML class attribute.
onclickfalsefalsejava.lang.StringNo Description
ondblclickfalsefalsejava.lang.StringNo Description
onmousedownfalsefalsejava.lang.StringNo Description
onmouseupfalsefalsejava.lang.StringNo Description
onmouseoverfalsefalsejava.lang.StringNo Description
onmousemovefalsefalsejava.lang.StringNo Description
onmouseoutfalsefalsejava.lang.StringNo Description
onkeypressfalsefalsejava.lang.StringNo Description
onkeydownfalsefalsejava.lang.StringNo Description
onkeyupfalsefalsejava.lang.StringNo Description
alignfalsefalsejava.lang.StringNo Description
borderfalsefalsejava.lang.StringNo Description
bgcolorfalsefalsejava.lang.StringNo Description
cellpaddingfalsefalsejava.lang.StringNo Description
cellspacingfalsefalsejava.lang.StringNo Description
datafldfalsefalsejava.lang.StringNo Description
datasrcfalsefalsejava.lang.StringNo Description
dataformatasfalsefalsejava.lang.StringNo Description
framefalsefalsejava.lang.StringNo Description
rulesfalsefalsejava.lang.StringNo Description
summaryfalsefalsejava.lang.StringNo Description
widthfalsefalsejava.lang.StringNo Description
valuefalsefalsejava.lang.StringSupported types see JSF Spec 4.1.3
vartruefalsejava.lang.StringNo Description
rowsfalsefalsejava.lang.StringNo Description
firstfalsefalsejava.lang.StringNo Description
columnClassesfalsefalsejava.lang.StringNo Description
footerClassfalsefalsejava.lang.StringNo Description
headerClassfalsefalsejava.lang.StringNo Description
rowClassesfalsefalsejava.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.
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.
preserveDataModelfalsefalsejava.lang.String Indicates whether the state of the whole DataModel should be saved and restored. Default: true
sortColumnfalsefalsejava.lang.String Value reference to a model property that gives the current sort column name.
sortAscendingfalsefalsejava.lang.String Value reference to a model property that gives the current sort direction.
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
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
rowIndexVarfalsefalsejava.lang.String A parameter name, under which the current rowIndex is set in request scope similar to the var parameter.
rowCountVarfalsefalsejava.lang.String A parameter name, under which the rowCount is set in request scope similar to the var parameter.
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.

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.