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

DetailStamp values overwritten if no datatable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.7
    • 1.1.10
    • Extended Datatable
    • None
    • Tomcat 5, running on winXP.

    Description

      Having a master-detail datatable (with the detailStamp) with one row expanded.
      When toggling the row below, all the input values of already expanded row (one higher), are copied into the newly expanded row.

      When working with a nested datatable, it works fine...but with all other components it doesn't.
      We currently have :

      <f:facet name="detailStamp">
      <t:div id="detailStampDiv">
      <table id="detailTable">
      <tr>
      <td><b>Street / Nr / Box</b></td>
      <td><t:inputText value="#

      {persBean.address.street}

      " size="30" label="Street" maxlength="120"/></td>
      </tr>
      </table>
      </t:div>
      </f:facet>

      After debugging through the AbstractHtmlDataTable and commenting out this rule in the processDetails method:

      if (!isCurrentDetailExpanded()) {
      continue;
      }

      it seems to work for us!

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              boogaeb bart Boogaerts
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: