Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11776

rich:extendedDataTable columnsOrder attribute is not working

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Final
    • Fix Version/s: 4.3.0.M3
    • Component/s: component-tables
    • Labels:
      None
    • Environment:

      Websphere AS 8, MyFaces

    • Story Points:
      0.5
    • Steps to Reproduce:
      Hide

      Just put ExtendedDataTable on the page and bind columnsOrder with some bean property and try to reorder columns:

      <rich:extendedDataTable id="table" columnsOrder="#{someBean.someProperty}">
      <!-- columns skipped -->
      </rich:extendedDataTable>
      

      someBean.someProperty is not set.

      Show
      Just put ExtendedDataTable on the page and bind columnsOrder with some bean property and try to reorder columns: < rich :extendedDataTable id = "table" columnsOrder = "#{someBean.someProperty}" > <!-- columns skipped --> </ rich :extendedDataTable> someBean.someProperty is not set.

      Description

      I am not sure if columnsOrder attribute may be used or it is deprecated, but there is definitely an error in SortingFilteringRowsRenderer.updateAttribute method.
      This line:

       
      component.getAttributes().put(attribute, null);
      

      always throws NullPointerException which is shallowed by try .. finally in UIDataAdaptor.visitTree method.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kvogel Kent Vogel
                Reporter:
                volkov.d Dmitry Volkov
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified