Details

    • Steps to Reproduce:
      Hide

      use cftable tag with cfcol tag and header attribute

      Show
      use cftable tag with cfcol tag and header attribute
    • Estimated Difficulty:
      Low

      Description

      <cftable query="users" colHeaders="true" HTMLTable="true">
      <cfcol header="Id" text="#id#" />
      <cfcol header="Name" text="#name#" />
      <cfcol header="Email" text="#email#" />
      <cfcol header="Password" text="#password#" />
      <cfcol header="" text="#linkTo(text='Show', action='show', key=id)#" />
      <cfcol header="" text="#linkTo(text='Edit', action='edit', key=id)#" />
      <cfcol header="" text="#linkTo(text='Delete', action='delete', key=id, confirm='Are you sure?')#" />
      </cftable>

      generates:

      <table colspacing="2">
      <tr>
      <th align="left" width="-1%">Id</th>
      <th align="left" width="-1%">Name</th>
      <th align="left" width="-1%">Email</th>
      <th align="left" width="-1%">Password</th>
      </tr>

      // the opening <tr> is missing

      <td align="left" width="-1%">2</td>
      <td align="left" width="-1%">XXXXXX</td>
      <td align="left" width="-1%">XXXXX@gmail.com</td>
      <td align="left" width="-1%">XXXXX</td>
      <td align="left" width="-1%"><a href="/users/show/2">Show</a></td>
      <td align="left" width="-1%"><a href="/users/edit/2">Edit</a></td>
      <td align="left" width="-1%"><a href="/users/delete/2" onclick="return confirm('Are you sure?');">Delete</a></td>
      </tr>
      </table>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                stofke kristof polleunis
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: