cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashel Shehata" <>
Subject repeater state and children
Date Thu, 17 May 2007 11:39:45 GMT

Im having a problem setting the state of a certain child of a repeater .

I have a simple repeater defined as:

  <fd:repeater id="selection"  >

  <fd:field id="response" required="true" state="disabled">
          <fd:label>Response Label</fd:label>
          <fd:datatype base="string"/>
..other children

Initially the response child is disabled but at some point i want to
activate all instances of the response child in the repeater

I have tried:

but i get an error:
TypeError: Cannot set property "state" of null

i get the same error using widget.lookupWidget

However on trying the method, the response widget is activated for row 0(as

how do i activate all instances of the response widget in the repeater.
Thanks a miilion

View raw message