cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linden H van der (MI)" <H.vanderLin...@MI.unimaas.nl>
Subject [CFORMS] NullPointerException in form-validation javascript when javascript debugger is enabled
Date Tue, 19 Apr 2005 14:57:39 GMT
Hi,

I stumbled onto a problem I've noticed before (Cocoon 2.1.5 I think). I
was under the impression it was solved,
but apparently not.

Situation is this: 
- SVN checkout of BRANCHES
- Build a form definition with 
<fd:form.....>
<fd:validation>
<fd:javascript>
 var success=true;
 return success;
</fd:javascript>
</fd:validation>
<....widget definitions...., including <fd:validation><fd:javscript>
etc. ....>

</fd:form>

- create a flowscript that handles the form:

function myForm() {
	var form = new Form(myformDef.xml);
	.....etc.
}

- [1] set 
      <debugger>enabled</debugger> <!-- JavaScript Debugger support -->

in cocoon.xconf. 

- run cocoon
- start function -> nullpointer exception
- change [1] to 
      <!-- debugger>enabled</debugger --> <!-- JavaScript Debugger
support -->

- restart cocoon
- start function -> works fine

I've traced the code as far as the JavaScriptHelper.buildFunction (line
100). In the ctx.compileFunction lines I noticed that somewhere it
called the DebugReader, which could be the problem.

It would be nice if someone could fix this, so the Javascript debugger
is useful again.

Thanks. 


Bye,

Helma van der Linden
Medical Informatics
University Maastricht
POBOX 616
6200 MD Maastricht
The Netherlands

Mime
View raw message