[Seaside] Enabling/disabling fields in async liveCallbacks?

Michel Bany m.bany at wanadoo.fr
Sun Feb 4 18:31:17 UTC 2007

Rick Flower a écrit :
> It dawned on me that it might be nice to disable some select fields 
> I've got on a form until certain other things have occurred on the 
> form (to enforce a sequence if you will).. Anyway, with the initial 
> rendering of the form, I sent in the disabled: true message.. This 
> worked fine and the select field was disabled (greyed-out)..
> I then went into the SeasideAsync liveCallback I've got and in the 
> place where this list is rendered over again with the populated 
> contents, I sent in the "disabled: false" message.. However, it still 
> doesn't get enabled.. Perhaps I'm going beyond what was meant?  I 
> don't get any errors or anything -- just a behavior I wasn't expecting..
> If this isn't possible, no biggie..  Just thought I'd try it out..
Hi Rick,
I think this should be possible. I would try enclosing the list in a div 
or span making sure the whole div or span is live updated, not the list.

More information about the Seaside mailing list