NPE in the sorter of the EnhancedRepeater
-----------------------------------------
Key: COCOON-2035
URL: https://issues.apache.org/jira/browse/COCOON-2035
Project: Cocoon
Issue Type: Bug
Components: Blocks: Forms
Affects Versions: 2.2-dev (Current SVN)
Reporter: Gustavo N. Fernandes
Attachments: SorterNullFix.patch
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.