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

sortable table doesn't sort columns with commandLinks only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.3-SNAPSHOT
    • 1.1.4-SNAPSHOT
    • Extended Datatable
    • None
    • JDK 1.5.0_04-b05
      JBoss 4.0.3SP1
      myfaces-api-1.1.2.jar
      myfaces-impl-1.1.4-SNAPSHOT.jar
      standard-1.1.2.jar
      tomahawk-1.1.3-SNAPSHOT.jar
      xp pro

    Description

      Using the auto sortable table of the latest tomahawk causes a sort problem:
      <t:dataTable value="#

      {dataBean.myList}

      "
      var="data"
      headerClass="tableheader"
      columnClasses="tablecell"
      sortable="true"
      sortColumn="#

      {dataBean.sortColumn}

      "
      sortAscending="#

      {dataBean.sortAscending}

      "
      preserveDataModel="true"
      preserveSort="true">
      <t:column defaultSorted="true">
      <f:facet name="header">
      <h:outputText value="ID" />
      </f:facet>
      <h:commandLink action="#

      {dataBean.selectCR}

      ">
      <f:param name="dataListId" value="#

      {data.id}" />
      <h:outputText value="#{data.id}

      " />
      </h:commandLink>
      </t:column>
      nothing gets sorted.
      Workaround: adding besides the commandLink <h:outputText value="#

      {data.id}

      " rendered="false"/> inside the t:column. Now the tables sorts by the value of the outputText.

      Attachments

        1. HtmlDataTable.patch
          3 kB
          Catalin Kormos

        Activity

          People

            grantsmith Grant Smith
            gumble Hannes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: