On 03.06.2004 14:17, [EMAIL PROTECTED] wrote:
Hi,
I have a form that uses javascript to perform validation. I've implemented the validator using <fd:javascript> in the form definition. Unfortunately, when I enable flow debug I get a NullPointerException on loading the form definition:
Form (resource://org/apache/cocoon/forms/flow/javascript/v3/Form.js, Line 54): java.lang.NullPointerException
If disable debug then the problem is solved.
I heard of it, but I have no knowledge to fix it.
I had noticed this problem previously and implemented a work-around with flow level validators so as not to have to put the Javascript in the form definition. Unfortunately I have just upgraded from 2.1.5-dev to 2.1.5 final and to my suprise I discover that support for adding custom flow level validators has been removed so my work-around for this problem no longer works either! (By the way, this also means that the http://localhost:8888/samples/blocks/forms/form1.flow sample no longer works as it should - the javascript validation rule for price per liter of diesel is not enforced).
Please can someone help out with this?
The flow level validation hack was replaced in favor of widget validators: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=108555680116244&w=4
I used fd:javascript though where only external validation functions are called. So I determine how a field has to be validated in the form definition, but the validation itself is scripted in external js files.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
