10. ICEfaces Tag Reference
Contents > ICEfaces Tag Reference > ice:columns
ice:columns |
|
The ice:columns tag displays row and column information from a backing bean DataModel in a table format. Data presentation can be controlled with the first and rows attributes. The first attribute specifies which row will start the table with 0 being the first row. The rows attribute specifies the number of rows to be rendered starting from the row specified in the first attribute. To include all the rows in the data model, set rows to 0. The default value for first and row attributes is 0.
Example
<ice:dataTable var="item" value="#{columnsBean.rowDataModel}" rows="10" columnClasses="columnsColumn">
<ice:column>
<f:facet name="header">
<ice:outputText value="Hello" />
</f:facet>
<ice:outputText value="Bye" />
</ice:column>
<ice:columns value="#{columnsBean.columnDataModel}" var="column">
<f:facet name="header">
<ice:outputText value="#{column}" />
</f:facet>
<f:facet name="footer">
<ice:outputText value="Footer" />
</f:facet>
<ice:outputText value="#{item}"/>
</ice:columns>
</ice:dataTable>
Rendered Output
|
Tag Attributes
| binding |
Expression |
| |
| The value-binding expression linking this component tag to a backing bean property.
|
| first |
Text |
| |
| The first attribute sets a zero based 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.
|
| id |
Text |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container.
|
| rendered |
Boolean |
| |
| A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
|
| rows |
Text |
| |
| The rows attribute sets the number of rows to display, starting from the row identified by the "first" attribute. If the value of the rows attribute is set to zero, all available rows in the underlying data model will be displayed.
|
| value |
Text |
| |
| The value attribute sets the current value for this component.
|
| var |
Text |
| |
| The var attribute sets the name of a request-scope attribute exposing the data for each iteration over the rows in the underlying data model for this table.
|
|