Jeremy Quinn dijo:
> Hi All
>
> I have a booleanfield widget, that needs to be disabled under certain
> conditions.
>
> pseudo-code :
>
> if ( album.scenarios.size() > 0 ) {
> disable ( album.publishable );
> }
>
> ie. the album.publishable value needs to be in the form, but should not
> be alterable by the user.
>
> Is there a way of doing this in Cocoon Forms ?
Another approach (not tested by me, but maybe works) is using the
JXTemplateGenerator. There is a <jx:if> tag that can be use to show/hide
controls in the rendered page.
Best Regards,
Antonio Gallardo