You see the Properties window for a Table Column component when you select it under a Table component in the A Table Column component represents a column in a Table component and is part of a Table Row Group component, so you might have to expand a Table component's node and then a Table Row Group node to see the Table Column component.
This JavaServer Faces 1.2 component has the following properties.
Type: String
Type: String
alignKey. Type: Object
The FieldKey
id or FieldKey
representing an identifier for a specific data element to be automatically aligned. If a FieldKey
is provided, it is used as is; otherwise, a FieldKey
is created using the provided id. Alignment is based on the object type of the data element. For example, Date
and Number
objects are aligned right; Character
and String
objects are aligned left, and Boolean
objects are aligned center. All columns, including select columns, are aligned left by default. The align
property overrides this value.
Type: boolean
Type: String
Type: String
Type: boolean
Type: String
emptyCell
property. Type: String
Type: String
Type: String
For a list of CSS2 style attributes, see the web page at
Type: String
style
property description for an explanation of why a class added to this property might appear to have no effect on the component. Type: String
Type: String
top
- Positions the contents at the top of the cell.middle
- The default value, which centers the contents vertically. bottom
- Positions the contents at the bottom of the cell. Type: int
Type: String
Type: int
Type: boolean
headerText
and footerText
properties. Set the width
property to justify columns accordingly. Type: String
Type: boolean
Type: String
Type: Object
FieldKey
ID or SortCriteria
used to define criteria for sorting the contents of a TableDataProvider
. This value is required if a column is to be shown as sortable. If you drop a database table on the component, this property is set for you.
If SortCriteria
is provided, the object is simply used for sorting. If an ID is provided, a FieldIdSortCriteria
is created for sorting. Alternatively, a value binding can be used to sort on an object external to the TableDataProvider
, such as the selected state of a checkbox or radiobutton. In this case, a ValueBindingSortCriteria
object is created for sorting. All sorting is based on the object type associated with the data element, such as Boolean
, Character
, Comparator
, Date
, Number
, or String
. If the object type cannot be determined, the object is compared as a String
.
Type: String
Type: boolean
rendered
property. Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: String
Type: boolean
emptyCell
property. Type: String
<td>
HTML element that is rendered for the column footer. Use only code that is valid in an HTML <td>
element. The code you specify is inserted in the HTML element and is not checked for validity. For example, you might set this attribute to nowrap='nowrap'
. For more information on the column footer, see Table Column Layout Elements. Type: String
<th>
HTML element that is rendered for the column header. Use only code that is valid in an HTML <th>
element. The code you specify is inserted in the HTML element and is not checked for validity. For example, you might set this attribute to nowrap='nowrap'
. For more information on the column header, see Table Column Layout Elements. Type: String
<td>
HTML element that is rendered for the table column footer. Use only code that is valid in an HTML <td>
element. The code you specify is inserted in the HTML element and is not checked for validity. For example, you might set this attribute to nowrap='nowrap'
. For more information on the table column footer, see Table Column Layout Elements. Type: boolean
You can bind this property to a JavaBeans property that determines when the component does get rendered. For example, an airline reservation form might show a Table Column for frequent flyers and not show it for the general public. To bind this property, click the ellipsis button (...) to the right of the property and choose Use Binding in the dialog box.
Type: boolean
<th scope="row">
. For example, a table has a column containing user names. To the left of this column is a column of checkboxes, and to the right are columns containing attributes of those users. The contents of the cells in the user Name column are acting as row headers, so this property is selected for the Name column. For more information, see Column Layout Elements. Type: String
row
- The cell provides header information for the rest of the row.col
- The cell provides header information for the rest of the column. rowgroup
- The cell provides header information for the rest of the row group (that is, the remaining cells of the <thead>, <tfoot<, or <tbody>).colgroup
- The cell provides header information for the rest of the column group, the remaining cells of the colgroup
.