[Seaside] Re: Re: Re: Re: Re: Ajax callback question:howtoupdatecomponenttreebefore #children gets called?

itsme213 itsme213 at hotmail.com
Mon Feb 11 18:51:16 UTC 2008


(sorry about the accidental empty post).

"itsme213" <itsme213 at hotmail.com> wrote
> html anchor
>  onClick:
>    "do this first (wait for success event?)"
>    (html request callback: [self updateModel])
>
>  then:
>    "then do this array of updates in parallel"
>     {(html updater
>         "id: anId not required; must be compA id"
>         callback: [self viewUpdateA] inComponent: compA).

>      (html updater
>         "id: anId not required; must be compB id"
>         callback: [self viewUpdateB] inComponent: compB).

Those callbacks would need a rendering canvas parameter.
        callback: [:renderer | self updateViewAOn: renderer]

Perhaps this can be combined with Holger Kleinsorgen's #asyncRenderWith
http://www.nabble.com/session-variable-vs.-dynamic-variable-td15349511.html#a15370912
so the same rendering code block of the appropriate component is
(a) run for the initial rendering, and
(b) automatically re-run for each subsequent ajax re-rendering.


- Sophie 





More information about the seaside mailing list