[Seaside] Component navigation
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).
> 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:
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside