Il giorno 30/set/04, alle 10:32, Daniele Madama ha scritto:
Hi,
I have a problem with use of convertor in binding. My application retrieve
an xml with this tag
<ammount>60.20</ammount>
in my form definition I define this widget
<fd:field id="fromAmount" required="false"> <fd:datatype base="decimal"/> <fd:label> <i18n:text>label.Da</i18n:text> </fd:label> </fd:field>
and in binding
<fb:value id="fromAmount" path="ammount">
<fd:convertor datatype="decimal" type="formatting" variant="currency">
<fd:patterns>
<fd:pattern locale="it_IT">###,##0.00</fd:pattern>
</fd:patterns>
</fd:convertor>
</fb:value>
This don't work fine, after load of form the associated input is empty; if
I remove "locale" attribue It work, but not in the format that I want.
Why did you put the convertor element in the binding? Have you tried putting it in the definition? I'm not even sure if defining it in the binding is supposed to work, but I might be wrong, I'm no CForms guru ;-)
Ugo
-- Ugo Cei - http://beblogging.com/
smime.p7s
Description: S/MIME cryptographic signature
