[Seaside] Component navigation
Robert Sirois
watchlala at hotmail.com
Tue Aug 30 14:46:20 UTC 2011
This is the method I use, although there are plenty of uses:
WASession#initialize super initialize. announcer := Announcer new.
WASession#on: announcement send: method to: object announcer on: announcement send: method to: object
AnAnnouncementSubclass class #on: payLoad ^(self new) payload: payLoad; yourself.
AComponent#initialize super initialize. self session on: AnAnnouncementSubclass send: #onChangeContent: to: self.
AComponent#children ^Array with: self content.
AComponent#onChangeContent: anAnnouncement self content: anAnnouncement payload.
Then call it this way:
self session announce: (AnAnnouncementSubclass on: WACounter new).
RS
> Date: Tue, 30 Aug 2011 16:26:17 +0200
> From: tulipe.moutarde at gmail.com
> To: seaside at lists.squeakfoundation.org
> Subject: Re: [Seaside] Component navigation
>
> > I'll focus on James and Robert approaches, although I'm not sure what
> > Announcements are. I'll search some info on that =)
>
> This should help:
> http://book.seaside.st/book/components/embedding/coupling
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110830/72375401/attachment.htm
More information about the seaside
mailing list