On Thu, 2004-07-01 at 13:35, Colin Paul Adams wrote: > Bruno> The problem is the following: > Bruno> path="boolean(@suppress-recurring)" > > Bruno> the path element must address a location > Bruno> (element/attribute) in you XML file. The expression you > Bruno> defined returns a boolean. > > Bruno> So it should be: path="@suppress-recurring" > > Bruno> The convertor looks good. > > Thank you. > If I remove the boolean function, then I get: > > "resource://org/apache/cocoon/forms/flow/javascript/Form.js", > line 165: uncaught JavaScript exception: at events2xml > (file:/home/colin/onevoice/members/flow/binding.js, Line 12) > at (resource://org/apache/cocoon/forms/flow/javascript/Form.js, Line > 165): > java.lang.RuntimeException: Cannot set value of boolean field "events.0.suppression" > to a non-Boolean value.
This means that the binding isn't using the convertor. Looking back at your previous mail: > <fb:value id="suppression" path="boolean(@suppress-recurring)"> > <fb:converter datatype="boolean" type="plain"/> > </fb:value> the convertor should be in the fd namespace, not fb. -- 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]
