Matthew Tuttle created TOMAHAWK-1639:
----------------------------------------
Summary: AbstractHtmlDataTable.expandAllDetails() doesn't work
unless rowKey is specified on dataTable
Key: TOMAHAWK-1639
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1639
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Extended Datatable
Affects Versions: 1.1.13
Reporter: Matthew Tuttle
Priority: Minor
AbstractHtmlDataTable.expandAllDetails() needs modified to work when a rowKey
isn't specified on a dataTable. Since it currently relies on a rowKey being
specified expandAllDetails() fails to function properly when called from a
header or footer.
Example (Doesn't Work):
<t:dataTable id="table" value="#{bean.values}" var="com"
varDetailToggler="detailToggler" rowKey="#{com.ID}">
<f:facet name="header">
<t:commandLink action="#{detailToggler.expandAllDetails}">
<t:outputText value="Show All" />
</t:commandLink>
</f:facet>
Example (Does Work - ONLY if rowKey is specified):
<t:dataTable id="table" value="#{bean.values}" var="com"
varDetailToggler="detailToggler" rowKey="#{com.ID}">
<t:column>
<f:facet name="header">
<t:outputText value="Test" />
</f:facet>
<t:commandLink action="#{detailToggler.expandAllDetails}">
<t:outputText value="Show All" />
</t:commandLink>
</t:column>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira