[PATCH] Enum selection list with apache enum support and null-text
------------------------------------------------------------------

         Key: COCOON-1793
         URL: http://issues.apache.org/jira/browse/COCOON-1793
     Project: Cocoon
        Type: Improvement
  Components: Blocks: Forms  
    Versions: 2.1.9-dev (current SVN)    
    Reporter: Simone Gianni
 Attachments: enumselectionlist-samples.diff, enumselectionlist.diff

Added support for apache enum in the EnumSelectionList. This will grant 
selection list items order on those JREs (expecially IBM, used by WebSphere) 
that will honor litteraly the Class.getDeclaredFields() javadocs and return 
elements in random order. This also adds the ability to implement the 
getEnumList method in the enum classes and implement a custom order. In case it 
isn't possible to retrieve a valid iterator for the apache enum, then the 
common way will be used.

Since i felt the lack of it, i also added a null-text="i18nkey" so that it's 
now possible to specify a label for the null element when the selection list is 
nullable="true". 

The second patch updates the samples adding a PreferredContact apache enum to 
the Contact bean, the form2 files (both for bean and xml binding) and messages, 
to demostrate the usage of both apache enum and the new null-text.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to