Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.13
-
None
Description
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="#
<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="#
">
<t:outputText value="Show All" />
</t:commandLink>
</t:column>