Since 3.0
Renders a control to toggle the expanded state of a row in the DataTable.
If this table only contains either PanelExpansion or RowExpansion, that type of expansion will occur. If both are children of the table, the 'expansion type' for each row is configurable via the RowState.
See the ICEfaces Showcase Live Demo of this component, complete with source code.
<ace:dataTable var="single"
value="#{viewBean.objectList}">
<ace:column headerText="UPC">
<h:outputText value="#{single.upc}"/>
</ace:column>
<ace:column headerText="Artist">
<h:outputText value="#{single.artist}" />
</ace:column>
<ace:column headerText="Album">
<h:outputText value="#{single.album}"/>
</ace:column>
<ace:column headerText="Name">
<h:outputText value="#{single.name}"/>
</ace:column>
<ace:column headerText="Show Sales">
<ace:expansionToggler>
</ace:column>
<ace:panelExpansion>
<h:outputText value="#{single.sales}"/>
</ace:panelExpansion>
</ace:dataTable>
This component has no attributes.
| changeListener | Used to define a server side FacesListener which will be notified each this expansion is either opened or closed. The listener receives a single ExpansionChangeEvent argument. The server event is fired at the same time as the 'expand' and 'contract' client events of the DataTable. |
Used to define a server side FacesListener which will be notified each this expansion is either opened or closed. The listener receives a single ExpansionChangeEvent argument. The server event is fired at the same time as the 'expand' and 'contract' client events of the DataTable.
Toggling of the ExpansionToggler is keyboard navigable.
| Keypress | Result |
|---|---|
| Enter/Space Key | Expand / contract expansion. |
None