cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christofer Dutz" <>
Subject AW: CForm Definition and CForm Template issue
Date Wed, 30 Aug 2006 07:58:42 GMT
Hi Omar,

I think you should use lookupWidget instead of getChild. getChild only gets
you the direct child of the form-root. You could either write

Hope this helps.


[ c h r i s t o f e r   d u t z ]

univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt

fon: 0 61 51 / 66 717 - 21
fax: 0 61 51 / 66 717 - 29

Darmstadt, Stuttgart, Karlsruhe, Düsseldorf

-----Ursprüngliche Nachricht-----
Von: Omar Adobati [] 
Gesendet: Mittwoch, 30. August 2006 09:39
Betreff: Re: CForm Definition and CForm Template issue

Actually, with the suggestions retrieved by the ML the form is well
displayed but... it doesn't work when I try to submit it. I have back
an error that says:

org.mozilla.javascript.EcmaError: Cannot convert null to an object.

and it refers to the line of code in the javascript file:

"firstname"   : form.getChild("firstname").getValue(),
"lastname"    : form.getChild("lastname").getValue(),

I think it's about the group tags I use, but I also think that should
be a way to do this job modifying the code in the flow script file...
where I can find a reference? Does anyone could help me again?

Thanks a lot

On 8/29/06, Mark Lundquist <> wrote:
> On Aug 29, 2006, at 7:50 AM, Omar Adobati wrote:
> > Do I need a <fd:widgets> for each <fd:field> or I could have just one
> > <fd:widgets> for each <fd:group> tag?
> Just one.  I think it _has_ to be that way.
> —ml—

Dr. Omar Adobati

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

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

View raw message