Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: EE-1.8.2.GA_P04
    • Fix Version/s: EE-1.8.2.GA_P05
    • Component/s: Facelet Components
    • Labels:
      None
    • Environment:
      ICEfaces 1.8.2 EE_P04, Tomcat 7.0.14, Chrome, IE, FF
    • Assignee Priority:
      P1

      Description

      The table header is not displayed correctly if the column is sorted in an autosortTable. The problem occurs only if there is an UTF-8 character in the title, because in the CommandSortHeaderRenderer at line 86, the text-value is escaped.
      E.g. the column title 'Érték' is transformed to 'Érték' if the column is sorted. Otherwise it is displayed correctly.

      To reproduce use the following sample page:
      <html xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ice="http://www.icesoft.com/icefaces/component"
                xmlns:ice-cc="http://www.icesoft.com/icefaces-composite-comps">
          <head>
              <title>Case 10820</title>
              <ice:outputStyle href="./xmlhttp/css/rime/rime.css" />
              <ice-cc:css/>
          </head>
          <body>
              <ice:form>
                  <f:view>
                      <ice-cc:autoSortTable id="entries" bean="#{autoSortBean.autoSortData}" showRowControls="false" paginatorMaxPages="4" >
                          <ice-cc:column title="Nyelv" name="id" value="#{row.id}" sortable="true"/>
                          <ice-cc:column title="Kulcs" name="name" value="#{row.name}" sortable="true"/>
                          <ice-cc:column title="Érték" name="phone" value="#{row.phone}" sortable="true"/>
                      </ice-cc:autoSortTable>
                  </f:view>
              </ice:form>
          </body>
      </html>

      And a bean like this:

      public class AutoSortBean implements Serializable {
          
          private ArrayList<Employee> data;
          private AutoSortTableBean autoSortData;


          public AutoSortBean() {
              data = new ArrayList<Employee>();
              for(int i=0; i<10; i++)
              {
                  Employee entry = new Employee();
                  entry.setId(i);
                  entry.setName("Employee "+i);
                  entry.setPhone("555-555"+i);
                  entry.setSite("Some random place");
                  entry.setArea("Alberta");
                  data.add(entry);
              }
          }
          
          public AutoSortTableBean getAutoSortData() {
              if(autoSortData == null)
                  autoSortData = new AutoSortTableBean(data, "id");
              
              return autoSortData;
          }
      }

      You should be able to see results demonstrated in the attached screen shots.
      1. case11185outcomeBeforeAutoSort.jpg
        33 kB
      2. case11185outcomeAfterAutoSort.jpg
        38 kB
      3. case11185outcome-2.jpg
        697 kB
      4. case11185outcome-1.jpg
        427 kB
      5. case11185-libraries.jpg
        210 kB

        Activity

        Hide
        Evgheni Sadovoi added a comment - - edited

        The header was displaying correctly with IF 1.8.2_P03

        Show
        Evgheni Sadovoi added a comment - - edited The header was displaying correctly with IF 1.8.2_P03
        Hide
        Ken Fyten added a comment -

        This seems likely to be a regression caused by changes made in http://jira.icesoft.org/browse/ICE-7658.

        Show
        Ken Fyten added a comment - This seems likely to be a regression caused by changes made in http://jira.icesoft.org/browse/ICE-7658 .
        Hide
        Philip Breau added a comment -

        Dupe of ICE-8212
        ClassNotFoundException is from the CommonsBeanUtils dependency, which is included with the build and sample

        Show
        Philip Breau added a comment - Dupe of ICE-8212 ClassNotFoundException is from the CommonsBeanUtils dependency, which is included with the build and sample

          People

          • Assignee:
            Philip Breau
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: