Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2
-
None
-
Patch available
-
Blocks: Forms - 1.1.0-SNAPSHOT
-
Blocks: Forms
Description
Steps to reproduce
===============
1. Execute the enhanced repeater sample at http://localhost:8888/blocks/cocoon-forms-sample/pagination/paginated.do
2. Click "Sort-by-name"
3. Click "Add player"
4. Click again "Add player"
5. Boom!
Causes
======
The sorter shipped wih EnhancedRepeater does not deals with situations where the value of the field being compared is null
Suggestion proposed
===================
A new parameter nullsAreHigh (default=false) are passed to RepeaterJXPathSorter that will check for nulls and will sort based on the
parameter. NullsAreHigh=false means that nulls are lower than anything else.
===============
1. Execute the enhanced repeater sample at http://localhost:8888/blocks/cocoon-forms-sample/pagination/paginated.do
2. Click "Sort-by-name"
3. Click "Add player"
4. Click again "Add player"
5. Boom!
Causes
======
The sorter shipped wih EnhancedRepeater does not deals with situations where the value of the field being compared is null
Suggestion proposed
===================
A new parameter nullsAreHigh (default=false) are passed to RepeaterJXPathSorter that will check for nulls and will sort based on the
parameter. NullsAreHigh=false means that nulls are lower than anything else.