I just came across a similar situation; I display the repeater if it
has any values. Since I was already using jx I did the following and
it works great.
<jx:if test="widget.getChild('repeaterWidgetID').getSize() > 0">dan On 9/13/05, Florian Leinberger <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to display/hide a whole repeater (containing several widgets) in > a > cocoon form depending on which value is selected in a select-field above this > repeater. > > I know how this can be done with single widgets using javascript in the form > definition, like > setState(Packages.org.apache.cocoon.forms.formmodel.WidgetState.ACTIVE); > setState(Packages.org.apache.cocoon.forms.formmodel.WidgetState.INVISIBLE); > > I would appreciate any hints if this can be done in a similiar way to > show/hide > not only a single widget but a whole repeater containing several widgets (with > all its repetitions). I tried "RepeaterState" which didn't work though :-( > > Thanks, Florian > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
