[Seaside] updating form element value
Lukas Renggli
renggli at gmail.com
Wed Oct 3 14:02:56 UTC 2007
> Question: How many http requests one should expect from the code of the
> updater below?
> > html updater
> > id: self id;
> > callback:[:h| self renderInnerContentOn: h];
> > callback:[:v | (self at: aSymbol) model
> > setValue: v]
> > value: (html formElement
> > id: (self at: aSymbol)
> > inputElementId;
> > value)]
A single one.
The following things happen:
1. A request is initiated from JavaScript.
2. The secondary callbacks (#callback:value:) are evaluated in the
order declared.
3. The primary callback (#callback:) is evaluated with a new rendering context.
4. The result of the primary callback is sent back to the client.
5. The JavaScript updates according to the new rendering.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the Seaside
mailing list