[Seaside] Capture/dump the output of a task

Bahman Movaqar Bahman at BahmanM.com
Sun Jun 2 00:09:44 UTC 2013


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


More information about the seaside mailing list