[Seaside] Using Dynamic Bindings in Seaside rendering
Derek Brans
brans at nerdonawire.com
Fri Apr 18 19:27:19 CEST 2003
Ooops, the point of clamping is to isolate a binding to the execution of a
block.
>
> renderContentsOn:
> html form: [
> #myAttributeForm binding: self.
> Bindings clamp: [self renderFormContentOn: html].
> html submitButtonWithAction: [self submit] text: self
submitButtonText]
>
This should be
renderContentsOn:
html form: [
Bindings clamp: [
#myAttributeForm binding: self.
self renderFormContentOn: html].
html submitButtonWithAction: [self submit] text: self submitButtonText]
The binding remains in scope for the duration of rendering, but is not
present in a callback block (unless the home context of the block is in a
rendering method, I suppose).
> This can help to solve the whole class of problems like containers and
> top-level components.
>
> Derek Brans
> Nerd on a Wire
> Web design that's anything but square
> http://www.nerdonawire.com
> phone: 604.874.6463
> mailto: brans at nerdonawire.com
>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>
>
More information about the Seaside
mailing list