cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos M. S. Bento Nogueira" <>
Subject [cforms] <fd:on-value-changed> not working
Date Tue, 28 Jun 2005 01:48:37 GMT
Hello cocoon users.

I'm trying to use a slightly modified versions of cforms examples
on cocoon/samples/blocks/forms/form1. I wanted to copy the behaviour
on this example(see it on number field tab) that fills an input field with 
a value just insert on another input field.

Here are my code snippets:


<fd:field id="peso" xmlns:fd="">

<fd:datatype base="decimal"/>
 	var novoPeso = event.source.value;
 	if (novoPeso != null)
             	var heparina = event.source.parent.lookupWidget("heparina");
             if (heparina.value == null)
               heparina.setValue(new java.lang.Long(novoPeso.intValue()*300));

<ft:widget id="peso">
 	<fi:styling size="1" submit-on-change="true"/>

-I've tried both in firefox and iexplore and it doesn't work.
-I've tried also submit-on-click with the same results.
-The javascript console shows the following error, both in the cforms
example and in my code: Error: uncaught exception: Permition denied to 
obtain property HTMLDivElement.parentNode


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message