Embedded WATask

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Embedded WATask

Peter Schorsch
Hi,

a seaside newbe question about WATask.

As I understood the documentation WATask is for workflows. With regard to
the seaside tutorial I wrote a Login/Logout task (subclass of WATask).

If my subclass of WATask is the root component it works. But as soon I try
to embed the task it fails with the message »This task has no delegation«

WATask subclass: TTLogInOutControl

TTLogInOutControl >> go
        self call: TTLogin new.

TTLogInOutControl class >> canBeRoot
        ^true

WAComponent subclass: TTLogin

TTLogin >> renderContentOn: html
        html heading: 'It works'.

What did I miss to call my subclass of WATask (TTLogInOutControl) embedded
in an other component? Or did I completely missunderstand the documentation
of WATask? If so, is there any tutorial/howto for embedded tasks in seaside?

Thank you for your help
       

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Embedded WATask

Julian Fitzell-2
Did you include the Task in the #children of the root component?

On Wed, Oct 20, 2010 at 7:42 PM, Peter Schorsch <[hidden email]> wrote:

> Hi,
>
> a seaside newbe question about WATask.
>
> As I understood the documentation WATask is for workflows. With regard to
> the seaside tutorial I wrote a Login/Logout task (subclass of WATask).
>
> If my subclass of WATask is the root component it works. But as soon I try
> to embed the task it fails with the message »This task has no delegation«
>
> WATask subclass: TTLogInOutControl
>
> TTLogInOutControl >> go
>        self call: TTLogin new.
>
> TTLogInOutControl class >> canBeRoot
>        ^true
>
> WAComponent subclass: TTLogin
>
> TTLogin >> renderContentOn: html
>        html heading: 'It works'.
>
> What did I miss to call my subclass of WATask (TTLogInOutControl) embedded
> in an other component? Or did I completely missunderstand the documentation
> of WATask? If so, is there any tutorial/howto for embedded tasks in seaside?
>
> Thank you for your help
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside