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

Using facet name="caption" in an Extended Datatable generates caption tags twice.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.7, 1.1.8
    • 1.1.9
    • Extended Datatable
    • None

    Description

      html:

      <t:dataTable id="currentImportsTable" headerClass="tableHeader" columnClasses="listRowLeft, listRowMid, listRowMid, listRowMid, listRowMid, listRowMid, listRowMid, listRowMid, listRowRight" rowClasses="listRow" value="#

      {advertiserHome.myJobs}

      " var="job" styleClass="listBox" cellpadding="0" cellspacing="0">
      <f:facet name="caption">
      <span jsfc="h:outputText">Current Imports</span>
      </f:facet>
      <h:column>
      <f:facet name="header">
      <span jsfc="h:outputText">File</span>
      </f:facet>
      <span jsfc="h:outputText">#

      {job.fileName}

      </span>
      </h:column>
      ...
      </t:dataTable>

      Example generated html:

      <table id="currentImportsTable" cellpadding="0" cellspacing="0" class="listBox">
      <caption>Current Imports</caption>
      <thead>
      <tr><th class="tableHeader" scope="col">File</th>
      <th class="tableHeader" scope="col">Creator</th>
      <th class="tableHeader" scope="col">Time Started</th>
      <th class="tableHeader" scope="col">Step</th>
      <th class="tableHeader" scope="col">Percent</th></tr>
      </thead>
      <caption>Current Imports</caption>
      <tbody id="currentImportsTable:tbody_element"></tbody>
      </table>

      Note: IE displays the dual captions. Firefox, Opera and Safari do not.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              wilwayco Joseph Wilwayco
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: