> Since reference descriptors aren't working yet, I'm wondering how I
> can fake it manually. Is there a way to take several objects and
> combine their descriptions and then generate a component from
> that? Currently if I ask for (anOrder description, anOrder address
> description) asComponent, I get an editor for the descriptions
> rather than the instances.
Yes, that is possible:
combined := obj1 description , obj2 description.
Probably you need to modify the description of the referenced object,
somehow like this (untested, just quickly put together):
combined := obj1 description , (obj2 description
collect: [ :ea |
" change accessors of obj2 go trough the selector
#reference that is called on obj1 "
ea accessor: (MACascadeAccessor
next: ea accessor) ].
Hope this helps,
On 24 Sep 2005, at 14:00, Philippe Marschall wrote:
> Du mir ist gerade etwas aufgefallen und zwar ist bei einem
> liveCallback SW2CurrentContextHolder value nil. Ist das ein
> bekanntes Problem?
Yeah, this is simply because the live-callback isn't evaluated within
the context chain where the dynamic variable is defined. As a
workaround you can just reference the context-holder from within the
live-block when defining the callback. That should be probably fixed
in Seaside or maybe SmallWiki 2, I don't recall where exactly this
variable is defined.
PS: Please ask your questions to the mailing list, so that other
people can follow the discussion as well.