Tomahawk tag library 2.0.
Tag columns


The tag allows dynamic columns in a datatable. The UIColumns component is used below a t:datatable to create a dynamic count of columns. It is used like a UIData component which iterates through a datamodel to create the columns. Unless otherwise specified, all attributes accept static values or EL expressions.


Tag Information
Tag Classorg.apache.myfaces.custom.crosstable.HtmlColumnsTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
groupByfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
This attribute tells the datatable to group by data in this column
groupByValuefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Optional - Allows you configure where to get the value to check for the group change condition. Default: all children of the column cell will be checked
defaultSortedfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
This attribute tells the datatable to make this column the default sorted, when sortable=true
sortablefalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
This attribute makes this column automaticaly sortable by a row object's property
sortPropertyNamefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
This attribute tells row object's property by which sorting will be performed on this column
footerdirfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footerlangfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footerondblclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronkeydownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronkeypressfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronkeyupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronmousedownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronmousemovefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronmouseoutfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronmouseoverfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footeronmouseupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footerstylefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footerstyleClassfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
Corresponds to the HTML class attribute.
footertitlefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headerdirfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headerlangfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headerondblclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronkeydownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronkeypressfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronkeyupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronmousedownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronmousemovefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronmouseoutfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronmouseoverfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headeronmouseupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headerstylefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
headerstyleClassfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
Corresponds to the HTML class attribute.
headertitlefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
dirfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
langfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: The base language of this document.
onclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when the element is clicked.
ondblclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when the element is double-clicked.
onkeydownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when a key is pressed down over this element.
onkeypressfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when a key is pressed over this element.
onkeyupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when a key is released over this element.
onmousedownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when the pointing device is pressed over this element.
onmousemovefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when the pointing device is moved while it is in this element.
onmouseoutfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when the pointing device is moves out of this element.
onmouseoverfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when the pointing device is moved into this element.
onmouseupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: Script to be invoked when the pointing device is released over this element.
stylefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: CSS styling instructions.
styleClassfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The CSS class for this element. Corresponds to the HTML 'class' attribute.
titlefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
HTML: An advisory title for this element. Often used by the user agent as a tooltip.
widthfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
This attribute can be used to set the width of the elements.
colspanfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
This attribute specifies the colspan attribute for the cell
headercolspanfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
footercolspanfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
No Description
columnIdfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The columnId which will be used as id for the column header. Notice: As the rowId on t:datatable this will not add any namespace to the id. The id will be rendered exactly as you provide it.
valuefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
An EL expression that specifies the data model that backs this table.

The value referenced by the EL expression can be of any type.

  • A value of type DataModel is used directly.
  • Array-like parameters of type array-of-Object, java.util.List, java.sql.ResultSet or javax.servlet.jsp.jstl.sql.Result are wrapped in a corresponding DataModel that knows how to iterate over the elements.
  • Other values are wrapped in a DataModel as a single row.

Note in particular that unordered collections, eg Set are not supported. Therefore if the value expression references such an object then the table will be considered to contain just one element - the collection itself.

firstfalsefalsejavax.el.ValueExpression
(must evaluate to int)
Defines the index of the first row to be displayed, starting from 0.
rowsfalsefalsejavax.el.ValueExpression
(must evaluate to int)
Defines the maximum number of rows of data to be displayed.

Specify zero to display all rows from the "first" row to the end of available data.

varfalsefalsejava.lang.StringDefines the name of the request-scope variable that will hold the current row during iteration.

During rendering of child components of this UIData, the variable with this name can be read to learn what the "rowData" object for the row currently being rendered is.

This value must be a static value, ie an EL expression is not permitted.

idfalsetruejava.lang.StringGet a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.
renderedfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
A boolean value that indicates whether this component should be rendered. Default value: true.
bindingfalsefalsejavax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent)
Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.

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.