Florian Leinberger schrieb: Hello,
> 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 :-( If you don't get this working, you could activate JX in your form template and display the repeater according to your select field with the jx macros. See the dreamteam example. HTH Christoph --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
