cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stewart, Gary" <>
Subject RE: CForms: Updating all instances of a widget in a repeater
Date Thu, 06 Apr 2006 13:17:52 GMT

> -----Original Message-----
> From: Jason Johnston []
> Sent: 06 April 2006 14:00
> To:
> Subject: Re: CForms: Updating all instances of a widget in a repeater
> I think to get the rows from a Repeater you have to use 
> getRow() rather
> than getChildren(). I think I've used something like this in the past:
> var repeater = ...
> for(var i=0; i<repeater.getSize(); i++) {
>   var row = repeater.getRow(i);
>   ...
> }
> Hope that works
> Actually the Javadoc for Repeater doesn't even look like it has a
> getChildren() method, so I'm not sure why you weren't getting 
> an error.

You are quite right; it isn't part of the class. I'll double check the code is actually being
called :D. Thanks for pointing me to the correct documentation. For some reason I was looking
at the container class.

Thanks again,


The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.

If you work for NHS Lothian and wish to have help to stop smoking, support is available by
contacting or 0131 537 9494  - internal 49494.  For anyone
else living/working in Lothian, please contact 0800 848484 for your nearest NHS stop smoking

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

View raw message