[Seaside] [BUG] [2.6a2-avi.66] #request doesn't work anymore

Andrew Catton andrew at smallthought.com
Tue Jan 3 05:35:22 CET 2006


Hi Damien,

You can use #request: in  callback code in your component, just not  
in rendering code.  For example, the following is fine:

renderContentOn: html
	html anchor
		callback: [self request: 'foo'];
		text: 'Request Something'.

It just doesn't make sense to #call: another component from within  
rendering code.

Cheers, Andrew

On 2-Jan-06, at 8:27 PM, Damien Cassou wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>> You can't send #request: (or anything else that uses #call:) from a
>> render method.  What you want is to make Tester a subclass of WATask
>> and to use
>
> Then, you shouldn't put #request: in WAComponent I think, but in  
> WATask,
> so that you would never have such a bugreport anymore.
>
> Thanks
>
> - --
> Damien
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFDuf0g3hhx1vOEX5sRApvUAJ0UuDbnAJUrimvWTLq3wEe9KZVc7QCeIDNq
> /Rz8eGwSDhHZA5yRhs2lLxw=
> =qVgK
> -----END PGP SIGNATURE-----
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

======================

Andrew Catton
Smallthought Systems Inc.
andrew at smallthought.com





More information about the Seaside mailing list