[Seaside] [Q] table elements in loops?

Avi Bryant avi at beta4.com
Mon Apr 7 16:16:52 CEST 2003


On Mon, 7 Apr 2003, Brian Brown wrote:

> 	html table: [
> 		items do: [:each |
> 			html tableRowWith: [html render: each].
> 		].
> 	].
>
> The ending tr tags all show up together at the end of the table, and the
> </table> tag doesn't get rendered at all. Any thoughts?

That's odd.  I tried the exact same code (with "1 to: 10" instead of
"items") and it looked perfectly normal, with </tr> and </table> where I'd
expect them to be.

I also tried your <img> example from before, and I got the </img> and
</a> close tags in the right place.

Can you try updating from CVS?  Have you been hacking the Renderer at all?
Can you send me a complete example that reproduces either of these
(related, I think) bugs?  Something's clearly not right with whatever code
you're using.

Avi



More information about the Seaside mailing list