[Seaside] Get the html created by a render method to use as a string in another method

Paul DeBruicker pdebruic at gmail.com
Tue Feb 2 21:30:56 UTC 2010


On 02/02/2010 04:24 PM, seaside-request at lists.squeakfoundation.org wrote:
>> renderContentOn: html
>> >          | testTab b |
>> >          b:= WARenderCanvas builder
>> >                  render:
>> >                          [ html render: 'hello'.
> - html refers to the renderer outside the block.
>
> - WARenderCanvas builder creates a new renderer instance, this is the
> argument passed into the renderer block.
>
> Lukas


Ahh.  Thanks.  Changing it to:

  renderContentOn: html
         | testTab b |
           b:= WARenderCanvas builder
                   render:
                          [:s |  s render: 'hello'.]

...etc...


fixed it.


More information about the seaside mailing list