« Return to Thread: Ending all callbacks/calls

RE: Ending all callbacks/calls

by Ramon Leon-5 :: Rate this Message:

Reply to Author | View in Thread

>
> That would still have issues, would it not?
>
> How would (from my example) Component know to return to TaskA?
>
> Many thanks,
> John

If you want Component to return to taskA, then you have component tell taskA
#home, taskA will then remove all its decorations.  To keep it simple,
consider the idea of a current home component available globally on the
session...

Root>>go
  | homeComponent |
  homeComponent := TaskA new.
  self session homeComponent: homeComponent.
  self call: homeComponent

TaskA>>go
  self call: Component new.

Component>>renderContentOn: html
  html anchor callback: [ self session homeComponent home ]; with: 'Home'

Ramon Leon
http://onsmalltalk.com

_______________________________________________
seaside mailing list
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 « Return to Thread: Ending all callbacks/calls

LightInTheBox - Buy quality products at wholesale price