[Seaside] temp var puzzle
Adrian Lienhard
adi at netstyle.ch
Mon Feb 6 14:49:51 CET 2006
Hi Michel,
Using a state holder stored in the temp should work too. Like that
you would not need an i-var.
Adrian
On Feb 6, 2006, at 13:16 , Bany, Michel wrote:
> Hi Avi,
>
> While backporting some code from VW to Squeak, I found strange that
> something that works fine in VW, does not work in Squeak :
>
> renderContentOn: html
> | temp |
> html form:
> [html textInputWithCallback:
> [:v | temp := v].
> html submitButtonWithAction:
> [self inform: 'Hello ', temp]].
>
> In VW, the value of "temp", computed by the first callback, is
> available
> to the second callback. In Squeak, the value is not available, the
> only
> solution I found was to make "temp" an i-var.
>
> The same difference can be observed with the canvas api.
>
> Do you think anything could be done to have Seaside behave in Squeak
> like
> in VW.
>
> Michel.
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the Seaside
mailing list