RowExpansion

Table of Contents

Overview

Since 3.0

The ace:rowExpansion renders a set of rows located underneath the row where ace:expansionToggler was activated. These subrows are defined by a tree relationship modeled in the List bound to the 'value' attribute of the parent DataTable. The List must be of the type List<java.util.Map.Entry<Object, List>> where the entries are mappings from row data objects to lists of sub-entries. If your application is using Java 6, java.util.AbstractMap.SimpleEntry<K,V> is available as a implementation of Map.Entry.

See the ICEfaces Showcase Live Demo of this component, complete with source code.

Getting Started

<ace:dataTable var="compilations"
               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 Name">
        <h:outputText value="#{single.album}"/>
    </ace:column>

    <ace:column headerText="Track Name">
        <h:outputText value="#{single.name}"/>
    </ace:column>

    <ace:column headerText="Sales">
        <h:outputText value="#{single.sales}"/>
    </ace:column>

    <ace:column headerText="Show Compilation Tracks">
        <ace:expansionToggler />
    </ace:column>

    <ace:rowExpansion />
</ace:dataTable>

Attributes

This component has no attributes.

TagLib Documentation
For reference, the complete taglib documentation for this component is available here.

Known Issues

Other Resources

Related Components

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2018 ICEsoft Technologies Canada Corp.