Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-1981

Exceptions while sorting in sheet in some special cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.2
    • 4.4.0
    • Core
    • None

    Description

      Currently, there are two comparator implementations used internally to sort (BeanComparator and ValueExpressionComparator). The BeanComparator is not woking using EL with more than one dot, e.g.

      #{bean.object.name}
      

      but the sorter is using it.
      The ValueExpressionComparator is more flexible with special cases and about 25% faster, so the BeanComparator should be removed.

      One example in the sheet.xhtml is:

          <tc:sheet id="s1" value="#{sheetController.solarList}" var="object8" rows="4">
            <tc:style maxHeight="500px"/>
            <tc:column label="Name" sortable="true">
              <tc:link label="#{object8.name}" labelLayout="skip"/>
            </tc:column>
      [...]
      

      When "var" contains a non alpha character and link-label is used for sorting.

      Attachments

        Activity

          People

            lofwyr Udo Schnurpfeil
            lofwyr Udo Schnurpfeil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: