[Seaside] Re: Application/Session Objects
dima-sender-3c337a at yasp.com
Wed Feb 22 18:01:45 UTC 2006
Richard Huxton wrote:
> Yanni Chiu wrote:
>> All WAComponent instances (i.e. an instance of your custom subclass)
>> can always find their corresponding session instance via "self session".
>> As Philippe has posted, you can create your own subclass of WASession,
>> to hold your database connection and other objects. I just create a
>> generic session with one instance variable that holds a dictionary.
>> That way I don't have to add/remove new slots, during development.
>> It's somewhat inconvenient to use though (#at: and #at:put: vs.
You still may use getter/setter style calls (with a price of performance)
by implementing doesNotUnderstand: aMessage
and checking aMessage against keys in your hash.
More information about the Seaside