[Seaside] Problem with Images

Rick Zaccone zaccone at bucknell.edu
Tue Mar 7 20:17:08 UTC 2006


On Mar 7, 2006, at 3:11 PM, Philippe Marschall wrote:

> 2006/3/7, Rick Zaccone <zaccone at bucknell.edu>:
>> Would someone please tell me what's wrong
>> here?
>
> The old and the new renderer don't have a compatible interface.
>
> the correct way to do that with new renderer is:
> html image url: '/bunnies.jpg'
>
> to be honset I can't imagine a possible use for
>
> image: aBlock
> 	^ self image with: aBlock
>
> it should perhaps be changed to
>
> image: aBlock
> 	self image url: aBlock
>
> Philippe

Yes, and maybe for consistency you should be able to write

html image with: '/bunnies.jpg'

Most (but not all) of the new API supports using with:.

Rick



More information about the Seaside mailing list