<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Mariano,<br>
      <br>
      I am not sure if I understand your question/problem completely. So
      I'll just write down some occasional thoughts on things that may
      or may not be of use to you ;-)<br>
      <br>
      Am 31.10.14 um 16:52 schrieb Mariano Martinez Peck:<br>
    </div>
    <blockquote
cite="mid:CAA+-=mUk3umQs0kyfx0fV89Y1FpwVmbLcEDbkuK1Z+aM3A3fJw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi guys,
        <div><br>
        </div>
        <div>There is an scenario that I don't know how to deal. I have
          a main component that displays tabs. Each tabs render a
          component. This component could be anything, including a task.
          The tab has correctly defined the #children. And the way the
          tab displays its current contents (a component) is via:  "self
          activeTabComponent renderOn: html"<br clear="all">
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    I am using VA Smalltalk, and there are no Continuations there, so I
    either use show:onAnswer: or the direct rendering of child
    components like you do.<br>
    <br>
    <blockquote
cite="mid:CAA+-=mUk3umQs0kyfx0fV89Y1FpwVmbLcEDbkuK1Z+aM3A3fJw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>The problem is if "activeTabComponent" is a Task. Since I
            am not doing not replacing anything (calling), I do not use
            #call: but #renderOn: as displayed above. The task can, at
            any point in time, or when the user clicks "Finish" do a
            "self answer: nil". I don't know what happens with this
            "self answer:" because I didn't do a #call: to that task. </div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    Hmm. There are several things to note here. First, you can always
    use onAnswer: to execute a Block whenever a component answers. So
    there is no need call: a component in order to get an answer. The
    only difference is that this is a Block that gets executed as sson
    as the component answers:, but it doesn't halt the normal execution
    of a calling method as in call:/answer:.<br>
    <br>
    So you can always do something like;<br>
    <br>
    self activeTabComponent: (MyTaskOrComponent new onAnswer: [:answer|
    self handleAnswer: answer]).<br>
    <br>
    Another cool place to use this if you have a JQDialog and need its
    answer when it's closed. <br>
    <br>
    <blockquote
cite="mid:CAA+-=mUk3umQs0kyfx0fV89Y1FpwVmbLcEDbkuK1Z+aM3A3fJw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Anyway... I would like to hook from my main component and
            I would like to know if the task has answered or even if the
            #go method finished so that I can automatically close the
            tab and remove this task.  Of course, I can pass the main
            component to the task, and then from the task itself tell
            the main component that he has finished...but I don't like
            this very much.</div>
        </div>
      </div>
    </blockquote>
    Although I fully agree: Sometimes it is the only thing that works.
    Apart from some publish/subscribe mechanism like Announcements. But
    Announcements are dangerous if you don't clean up subscriptions once
    your component is gone. I once hunted for strange duplicate INSERTs
    to the Database, just to find out that some old Components still
    handled announcements although they had long disappeared from the
    tree of visible components... I lost a couple of hours if not days
    with this ;-)<br>
    <br>
    <br>
    Does this help? If not, maybe you can give a few more details on
    your situation.<br>
    <br>
    Happy day at the Seaside,<br>
    <br>
    Joachim<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CAA+-=mUk3umQs0kyfx0fV89Y1FpwVmbLcEDbkuK1Z+aM3A3fJw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div>Any idea?</div>
          <div><br>
          </div>
          <div>Thanks in advance </div>
          <div><br>
          </div>
          -- <br>
          Mariano<br>
          <a moz-do-not-send="true"
            href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          <a class="moz-txt-link-freetext" href="mailto:jtuchel@objektfabrik.de">mailto:jtuchel@objektfabrik.de</a>
Fliederweg 1                         <a class="moz-txt-link-freetext" href="http://www.objektfabrik.de">http://www.objektfabrik.de</a>
D-71640 Ludwigsburg                  <a class="moz-txt-link-freetext" href="http://joachimtuchel.wordpress.com">http://joachimtuchel.wordpress.com</a>
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1

</pre>
  </body>
</html>