cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rolf Metternich (JIRA)" <>
Subject [jira] Commented: (COCOON-1915) Nullable value with additional String or XMLizable in JavaSelectionList
Date Thu, 23 Nov 2006 06:52:03 GMT
    [ ] 
Rolf Metternich commented on COCOON-1915:

Hello Mark!

Maybe your solution shows the same data in the form, but the 'null-text' tag is made for supporting
the 'nullable' attribute in the selection list. 

So you can differ between normal items and the text-value for the nullable element and set
the null-text by software.

This is useful for sax generation in the AbstractJavaSelectionList where the 'nullable' attribute
is tested.


> Nullable value with additional String or XMLizable in JavaSelectionList
> -----------------------------------------------------------------------
>                 Key: COCOON-1915
>                 URL:
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: Blocks: Forms
>    Affects Versions: 2.2-dev (Current SVN), 2.1.9, 2.1.10-dev (current SVN)
>            Reporter: Rolf Metternich
>            Priority: Minor
>         Attachments: JavaSelectionList.txt, JavaSelectionList.txt
> Setting a text for the nullable-Value as String or XMLizable programmaticly by using
setNullText(String nullText);
> Also you can set the nullText in the definition of the selectionlist.
> Example:
> <fd:datatype base="long"/>
> <fd:selection-list>
>   <fd:null-text>
>     <i18n:text>please-select</i18n:text>
>   </fd:null-text>
>   <fd:item value="1"/>
>   <fd:item value="2"/>
>   <fd:item value="3">
>     <fd:label>three</fd:label>
>   </fd:item>
>   <fd:item value="4"/>
>   <fd:item value="5"/>
> </fd:selection-list>

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