2 Replies Latest reply on Sep 3, 2013 10:10 PM by dlee606

    rich:extendedDataTable - rich:column - sortBy not working with JoinColumn

    dlee606

      Hi ,

       

      I been try to use custom sortBy for my table.

      Everything was fine until I tried to sort by a JoinColumn.

      --Is any way to solve this?

       

      Here is my code:

       

      <rich:column  label="#{messages['Severity']}" filterType="custom" sortType="custom"

                    sortBy="#{alarms.severity}" sortOrder="#{maintainTableState.getSortOrder('tableStateAlarmList','alarmSeverity')}" id="alarmSeverity">

                    <f:facet name="header">

                        <div class="sortHeader">

                        <a4j:commandLink execute="@this" value="#{messages['Severity']}" render="alarmFilter"

                          action="#{maintainTableState.sort}"

                          onclick="#{rich:component('waitPanel')}.show()"

                          oncomplete="#{rich:component('waitPanel')}.hide()">

                          <f:param name="sortProperty" value="alarmSeverity"/>

                          <f:param name="sortTableState" value="tableStateAlarmList"/>

                        </a4j:commandLink>

      ...

       

      @ManyToOne(fetch = FetchType.EAGER)

          @JoinColumn(name = "source_severity")

      ...