[Seaside] Component rendering
Alain Fischer
alain.fischer at bluewin.ch
Tue Jun 21 22:49:30 CEST 2005
What is the simplest way to render a component ?
In the past, I was using:
> testSstTemplate
>
> | document resultText |
> document := WAHtmlResponse new.
> SSTTestComponent new renderContentOn: (WAHtmlBuilder on: document).
> resultText := String streamContents: [:stream | document body
> printHtmlOn: stream].
> self assert: resultText = '<body>First line<br />Second line<br
> />Third line<br /></body>'.
> self
> should: [SSTTestErrorComponent new renderContentOn: (WAHtmlBuilder
> on: document)]
> raise: Error.
This doesen't work anymore in Seside 2.5
I have tried to replace WAHTMLResponse by WAHtmlDocument but this
doesn't solve all the issues.
Alain
More information about the Seaside
mailing list