[Seaside] Callbacks on collection tags

Esteban A. Maringolo emaringolo at gmail.com
Mon Feb 4 18:58:25 UTC 2008


Hi Lukas:

On Feb 4, 2008 3:47 PM, Lukas Renggli <renggli at gmail.com> wrote:
> > In the previous example, the unordered list callback block, when
> > executed, knows the "selected" item.
> > But there's no way to know it in the updater block.
>
> In the above code you define the onClick action on the list, therefor
> you only knowledge is that the user clicked in the area of the ul-tag.

Yes, you're right. Then it's ok it works that way, it is homogeneous
with the rest.

> Fore sake of correctness: It is possible to find out what element was
> originally clicked by looking at the JavaScript event object. However
> this is not easily feasible (yet) by only writing Smalltalk code.

Ok, then it is still convenient to render the list items manually.

Thanks.

-- 
Esteban A. Maringolo
eMaringolo at gmail.com


More information about the seaside mailing list