On Tue, 2004-07-27 at 11:58, Derek Hohls wrote:
> Bruno
>
> I have tried the same:
>
> <fd:field id="number" required="true">
> <fd:label>Select a number:</fd:label>
> <fd:datatype base="integer"><fd:convertor datatype="integer"
> type="plain"</fd:datatype>
> <!--
> <fd:selection-list>
> <fd:item value="1"/>
> <fd:item value="2"/>
> <fd:item value="3"/>
> <fd:item value="4"/>
> <fd:item value="5"/>
> </fd:selection-list>
> -->
> </fd:field>
>
> and I still get the "," ... could this be a locale setting problem?
No, since the plain convertor does simply String.valueOf(...), which is
locale insensitive.
>
> I am using Cocoon 2.1.5; the "stable" version. Could you
> check this issue on the same version?
Sorry, no time for that right now, maybe later today.
However, I'm now confused again because you posted that particular XML
snippet and added type="plain" in it (and also because it's not even
well-formed XML). Note that this was not necessary, the type="plain"
needs to be in the binding:
<!-- jxpath binds to nodes as well as to attributes -->
<fb:value id="number" path="number/@value">
<!-- for non-string datatypes, a convertor must be specified.
These are
the same convertors as can be used in form definitions, but
require an
extra datatype attribute. Here we use the default convertor for
longs. -->
<fd:convertor datatype="integer" type="plain"/>
</fb:value>
Just to be sure, could you confirm you did this also?
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]