You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Ugo Cei (JIRA)" <ji...@apache.org> on 2006/03/07 12:04:39 UTC

[jira] Closed: (COCOON-1793) [PATCH] Enum selection list with apache enum support and null-text

     [ http://issues.apache.org/jira/browse/COCOON-1793?page=all ]
     
Ugo Cei closed COCOON-1793:
---------------------------

    Fix Version: 2.1.9-dev (current SVN)
     Resolution: Fixed

Applied. Please cross-check.

> [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
>     Assignee: Ugo Cei
>      Fix For: 2.1.9-dev (current SVN)
>  Attachments: enumselectionlist-samples.diff, enumselectionlist-samples2.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