cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Gianni (JIRA)" <>
Subject [jira] Created: (COCOON-1793) [PATCH] Enum selection list with apache enum support and null-text
Date Tue, 07 Mar 2006 03:00:29 GMT
[PATCH] Enum selection list with apache enum support and null-text

         Key: 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:
For more information on JIRA, see:

View raw message