On 2013-06-01 11:36, Bahman Movaqar wrote:
> Hi all,
>
> Is it possible to capture/dump the rendered result of a Task? Consider
> the following pseudo-code:
>
> <code>
>
> SomeComponent>>#renderContentOn: h
> .
> .
> .
> h render: (SomeTask new; go).
> .
> .
> .
>
> </code>
Solved. I couldn't do it because of a mistake on my side.
For the record, this is how I did it:
<code>
WAComponent subclass: #SomeComponent
instanceVariableNames: 'someTask'
classVariableNames: ''
poolDictionaries: ''
category: ''
SomeComponent>>#initialize
self someTask: SomeTask new.
SomeComponent>>#children
^ Array with: self someTask.
SomeComponent>>#renderContentOn: h
h render: self someTask.
</code>
--
Bahman Movaqar (
http://BahmanM.com)
ERP Evaluation, Implementation, Deployment Consultant
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside