Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICEfaces EE Composite Components
Tag expandableTable

## Expandable Data Table Composite Component

### Features

- The expandableTable tag consists of an ice:dataTable containing common elements required to add an expandable table to an application

### How To Use

1. Wrap your dataTable records in com.icesoft.faces.facelets.component.expandabletable.ExpandableRecord, using the parent or child constructor as necessary.
2. Use the expandableTable tag and specify the id and columns attributes.

Example:

    <ice-cc:expandableTable id="expTbl" bean="#{salesRecordsManager}" value="#{salesRecordsManager.salesGroupRecordBeans}" cellpadding="0" width="500px" columnClasses="dummy, dummy, dateColumn, dummy, dummy, dummy"/>

Tag Information
Tag Class | javax.faces.webapp.FacetTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | Expandable Table Composite Component

Attributes
Name | Required | Request-time | Type | Description
id | true | false | `java.lang.String` | A unique id for the component.
value | true | false | `javax.faces.model.DataModel` | The data model for this component.
columns | true | false | `java.lang.String` | Comma-delimited list of column name
imageDir | false | false | `java.lang.String` | Set directory for location of the images.
expandImage | false | false | `java.lang.String` | The expandImage is the name of the expand image to be used by the expandable table (default "tree_nav_top_open_no_siblings.gif")
contractImage | false | false | `java.lang.String` | The contractImage is the name of the contract image to be used by the expandable table (default "tree_nav_top_close_no_siblings.gif")
bgcolor | false | false | `java.lang.String` | Name or code of the background color for this table.
border | false | false | `java.lang.String` | Width (in pixels) of the border to be drawn around this table.
cellpadding | false | false | `java.lang.String` | Definition of how much space the user agent should leave between the border of each cell and its contents.
cellspacing | false | false | `java.lang.String` | 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.
columnClasses | false | false | `java.lang.String` | 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. If the value of this attribute is not being set, the tableRenderer would render the default classes using the following pattern (e.g.) |  |  |  | .... The above class pattern would allow you to define the base style in the "column" class and if you want to customize any of the specific column you can override the column+index class.
rowClasses | false | false | `java.lang.String` | 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. The default classes rendered as iceDatTblRow1, iceDatTblRow2 alternatively.
footerClass | false | false | `java.lang.String` | Space-separated list of CSS style class(es) that will be applied to any footer generated for this table. The default classe rendered as iceDatTblFtr.
headerClass | false | false | `java.lang.String` | Space-separated list of CSS style class(es) that will be applied to any header generated for this table. The default class would rendered as iceDatTblHdr.
headerClasses | false | false | `java.lang.String` | This attribute can be used to define the separate style classes for the each header of the each column. The default would rendered as : iceDatTblColHdr1, iceDatTblColHdr2 alternatively Note: The attribute has been deprecated.
rules | false | false | `java.lang.String` | 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).
summary | false | false | `java.lang.String` | Summary of this table's purpose and structure, for user agents rendering to non-visual media such as speech and Braille.
first | false | false | `java.lang.Integer` | 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.
frame | false | false | `java.lang.Integer` | 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).
rendered | false | false | `java.lang.Boolean` | Flag indicating whether this component should be rendered (during Render Response Phase), or processed on any subsequent form submit (default true).
rows | false | false | `java.lang.Integer` | 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.
style | false | false | `java.lang.String` | CSS style(s) to be applied when this component is rendered
styleClass | false | false | `java.lang.String` | Space-separated list of CSS style class(es) to be applied when this element is rendered.
title | false | false | `java.lang.String` | Passed through to underlying component
width | false | false | `java.lang.String` | Sets the width of the displayed area for the Component

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

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.