[Seaside] Temporary variable for callback
damien.cassou at laposte.net
Sat Nov 25 11:20:23 UTC 2006
I thought code like this used to work:
| firstname |
callback: [:value | firstname := value].
callback: [self inform: 'Hello ' , firstname]].
But it seems it is not the case ; when the callback of submit button is
executed, firstname is nil. However, a 'self halt' in the callback of
textInput shows that firstname is changed correctly. I use
Seaside2.7a1-pmm.134 (last version).
If I change the temporary to an instance variable, the problem disapear
and it works perfectly.
More information about the Seaside