Hello, I have a form in which I use some fields in floating number (base="double"). When I trigger the save function (form.save(bindData)), all numbers after the floating point have disappeared.
(example: 12.34 become 12.0) Here's my definition file: <fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" xmlns:i18n="http://apache.org/cocoon/i18n/2.1"> <fd:widgets> <fd:repeater id="case" orderable="true"> <fd:widgets> <fd:output id="CaseID"> <fd:label>ID</fd:label> <fd:datatype base="integer"/> </fd:output> <fd:field id="a"> <fd:label>Value of a</fd:label> <fd:hint>Value of a</fd:hint> <fd:datatype base="double"/> </fd:field> <fd:field id="b"> <fd:label>Value of b</fd:label> <fd:hint>Value of b</fd:hint> <fd:datatype base="double"/> </fd:field> <fd:field id="c"> <fd:label>Value of c</fd:label> <fd:hint>Value of c</fd:hint> <fd:datatype base="double"/> </fd:field> </fd:widgets> </fd:repeater> </fd:widgets> </fd:form> And here is my binding file: <fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" path="."> <fb:simple-repeater id="case" parent-path="cases" row-path="case"> <fb:value id="CaseID" path="@id"/> <fb:value id="a" path="a"/> <fb:value id="b" path="b"/> <fb:value id="c" path="c"/> </fb:simple-repeater> </fb:context> Anyone has an idea of this problem ? Thanks in advance Dang Trong Hieu -- View this message in context: http://www.nabble.com/-Cocoon-2.1-%2B-binding--Cannot-convert-float-to-integer-tf4717212.html#a13484730 Sent from the Cocoon - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
