Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1639

AbstractHtmlDataTable.expandAllDetails() doesn't work unless rowKey is specified on dataTable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.13
    • 1.1.14
    • Extended Datatable
    • 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="#

      {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>

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            impulse0022 Matthew Tuttle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: