h
Tag dataTable


Renders an HTML "table" element compliant with the HTML 401 specification. Render the "caption" facet, if present, inside a "caption" element immediately below the "table" element. If the "captionClass" attribute is specified, render its value as the value of the "class" attribute on the "caption" element. If the "captionStyle" attribute is specified, render its value as the value of the "style" attribute on the "caption" element.

Please consult the javadoc for UIData to supplement this specification. If the "styleClass" attribute is specified, render its value as the value of the "class" attribute on the "table" element. Any pass-through attributes are also rendered on the "table" element.

Rendering the header

Rendering the footer

Rendering the table body

When done rendering all the rows, set the "rowIndex" property of the UIData to -1, and close out the "table" element.



Tag Information
Tag Classcom.sun.faces.taglib.html_basic.DataTableTag
TagExtraInfo Classcom.sun.faces.taglib.FacesTagExtraInfo
Body ContentJSP
Display NameNone

Attributes
first
Zero-relative row number of the first row to be displayed. If this property is set to zero, rendering will begin with the first row of the underlying data.
 
Required: false
Request-time: false
Type: java.lang.String
id
The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
 
Required: false
Request-time: false
Type: java.lang.String
rendered
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.
 
Required: false
Request-time: false
Type: java.lang.String
rows
The number of rows to display, starting with the one identified by the "first" property. If this value is set to zero, all available rows in the underlying data model will be displayed.
 
Required: false
Request-time: false
Type: java.lang.String
value
The current value of this component.
 
Required: false
Request-time: false
Type: java.lang.String
var
Name of a request-scope attribute under which the model data for the row selected by the current value of the "rowIndex" property (i.e. also the current value of the "rowData" property) will be exposed.
 
Required: false
Request-time: false
Type: java.lang.String
bgcolor
Name or code of the background color for this table.
 
Required: false
Request-time: false
Type: java.lang.String
border
Width (in pixels) of the border to be drawn around this table.
 
Required: false
Request-time: false
Type: java.lang.String
captionClass
Space-separated list of CSS style class(es) that will be applied to any caption generated for this table.
 
Required: false
Request-time: false
Type: java.lang.String
captionStyle
CSS style(s) to be applied when this caption is rendered.
 
Required: false
Request-time: false
Type: java.lang.String
cellpadding
Definition of how much space the user agent should leave between the border of each cell and its contents.
 
Required: false
Request-time: false
Type: java.lang.String
cellspacing
Definition of how much space the user agent should leave between the left side of the table and the leftmost column, the top of the table and the top of the top side of the topmost row, and so on for the right and bottom of the table. It also specifies the amount of space to leave between cells.
 
Required: false
Request-time: false
Type: java.lang.String
columnClasses
Comma-delimited list of CSS style classes that will be applied to the columns of this table. A space separated list of classes may also be specified for any individual column. If the number of elements in this list is less than the number of columns specified in the "columns" attribute, no "class" attribute is output for each column greater than the number of elements in the list. If the number of elements in the list is greater than the number of columns specified in the "columns" attribute, the elements at the posisiton in the list after the value of the "columns" attribute are ignored.
 
Required: false
Request-time: false
Type: java.lang.String
dir
Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).
 
Required: false
Request-time: false
Type: java.lang.String
footerClass
Space-separated list of CSS style class(es) that will be applied to any footer generated for this table.
 
Required: false
Request-time: false
Type: java.lang.String
frame
Code specifying which sides of the frame surrounding this table will be visible. Valid values are: none (no sides, default value); above (top side only); below (bottom side only); hsides (top and bottom sides only); vsides (right and left sides only); lhs (left hand side only); rhs (right hand side only); box (all four sides); and border (all four sides).
 
Required: false
Request-time: false
Type: java.lang.String
headerClass
Space-separated list of CSS style class(es) that will be applied to any header generated for this table.
 
Required: false
Request-time: false
Type: java.lang.String
lang
Code describing the language used in the generated markup for this component.
 
Required: false
Request-time: false
Type: java.lang.String
onclick
Javascript code executed when a pointer button is clicked over this element.
 
Required: false
Request-time: false
Type: java.lang.String
ondblclick
Javascript code executed when a pointer button is double clicked over this element.
 
Required: false
Request-time: false
Type: java.lang.String
onkeydown
Javascript code executed when a key is pressed down over this element.
 
Required: false
Request-time: false
Type: java.lang.String
onkeypress
Javascript code executed when a key is pressed and released over this element.
 
Required: false
Request-time: false
Type: java.lang.String
onkeyup
Javascript code executed when a key is released over this element.
 
Required: false
Request-time: false
Type: java.lang.String
onmousedown
Javascript code executed when a pointer button is pressed down over this element.
 
Required: false
Request-time: false
Type: java.lang.String
onmousemove
Javascript code executed when a pointer button is moved within this element.
 
Required: false
Request-time: false
Type: java.lang.String
onmouseout
Javascript code executed when a pointer button is moved away from this element.
 
Required: false
Request-time: false
Type: java.lang.String
onmouseover
Javascript code executed when a pointer button is moved onto this element.
 
Required: false
Request-time: false
Type: java.lang.String
onmouseup
Javascript code executed when a pointer button is released over this element.
 
Required: false
Request-time: false
Type: java.lang.String
rowClasses
Comma-delimited list of CSS style classes that will be applied to the rows of this table. A space separated list of classes may also be specified for any individual row. Thes styles are applied, in turn, to each row in the table. For example, if the list has two elements, the first style class in the list is applied to the first row, the second to the second row, the first to the third row, the second to the fourth row, etc. In other words, we keep iterating through the list until we reach the end, and then we start at the beginning again.
 
Required: false
Request-time: false
Type: java.lang.String
rules
Code specifying which rules will appear between cells within this table. Valid values are: none (no rules, default value); groups (between row groups); rows (between rows only); cols (between columns only); and all (between all rows and columns).
 
Required: false
Request-time: false
Type: java.lang.String
style
CSS style(s) to be applied when this component is rendered.
 
Required: false
Request-time: false
Type: java.lang.String
styleClass
Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.
 
Required: false
Request-time: false
Type: java.lang.String
summary
Summary of this table's purpose and structure, for user agents rendering to non-visual media such as speech and Braille.
 
Required: false
Request-time: false
Type: java.lang.String
title
Advisory title information about markup elements generated for this component.
 
Required: false
Request-time: false
Type: java.lang.String
width
Width of the entire table, for visual user agents.
 
Required: false
Request-time: false
Type: java.lang.String
binding
The ValueExpression linking this component to a property in a backing bean
 
Required: false
Request-time: false
Type: java.lang.String

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.