Project Documentation
Foundation

Summary

Tag name: <s:filterTable>
UIComponent class: org.apache.myfaces.custom.table.FilterTable
Tag class: org.apache.myfaces.custom.table.FilterTableTag
Component type: org.apache.myfaces.FilterTable
Component family: javax.faces.Data
Renderer type: org.apache.myfaces.FilterTable
Renderer class: org.apache.myfaces.custom.table.FilterTableRenderer

Supported Facets

Name Required Description
footer false
header false

Attributes

Name Type Supports EL? Description
alternateRows Boolean Yes default=true see http://dojotoolkit.org filterTable
binding org.apache.myfaces.custom.table.FilterTable Only EL Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.
border Integer Yes default=0
cellpadding Integer Yes default=0
cellspacing Integer Yes default=0
first int Yes Defines the index of the first row to be displayed, starting from 0.
headClass String Yes default=fixedHeader see http://dojotoolkit.org filterTable
id String Yes Get 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.
maxSortable Integer Yes default=1 see http://dojotoolkit.org filterTable
multiple Boolean Yes default=true see http://dojotoolkit.org filterTable
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.
rows int Yes 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.

styleClass String Yes CSS style class attribute
tbodyClass String Yes default=scrollContent see http://dojotoolkit.org filterTable
value Object Yes 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.

var String No Defines 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.