Florian Leinberger 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 :-(
The widget states feature is (intended to be) globally available for all
widgets, so the exact same syntax as your two lines above should work
for repeater widgets. If not then it's a bug and should be reported in
Bugzilla.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]