[Seaside] Dynamic bindings...howto?
Avi Bryant
avi at beta4.com
Thu Jun 10 21:29:50 CEST 2004
This reminds me - David, did you ever figure out the new configuration
stuff? If so, how about you write up a little tutorial? ;)
On Jun 10, 2004, at 9:01 AM, Stephen Pair wrote:
> David,
>
> More than likely, it's Seaside's use of continuations that is throwing
> things off. Dynamic bindings uses the call stack to locate bindings.
> Invoking a continuation places you in a context that is in an entirely
> different call stack, therefore bindings do not carry through the
> invocation of a continuation.
>
> - Stephen
>
> C. David Shaffer wrote:
>
>> I guess I mean "dynamically scoped variables." I'm trying to leverage
>> KomService's dynamic variable binding support but I'm having
>> problems. Before I waste an entire night on it I thought that I'd
>> ask if anyone is using it successfully. I just want to make sure
>> that I'm not going nuts. Anyway, here's what I'm doing...it seems
>> simple enough:
>>
>> In the Kom services service for StarBrowser I stopped the server,
>> picked "edit bindings" and then in the resulting inspector on an
>> instance of DynamicBindings I evaluated:
>>
>> self at: #TestMyBinding put: 1234.
>>
>> started the server (it looks like the start method actually
>> establishes the current set of bindings for a server) and then in my
>> renderContentOn: for one of my components I added
>>
>> html text: #TestMyBinding binding printString.
>>
>> loaded the component in a fresh web browser window but the binding
>> shows up as nil. I verified that the HttpService which is running
>> does indeed have my bindings in it's bindings i-var.
>> Searching the web for docs hasn't turned up much. I did play with
>> manually clamping the bindings and that seems to work but I would
>> like set of bindings for my running server (to use for configuration
>> management).
>>
>> David
>>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
More information about the Seaside
mailing list