[Seaside] Question about WATree

Cédrick Béler cbeler at enit.fr
Thu Nov 23 10:40:06 UTC 2006

> Hello all,
> I'm trying to use WATree with a relational database on the back end - 
> it doesn't seem to want to go beyond the second level.
> I'm using it with ROE, and creating it as such:
> setupTree
>     ^ WATree new
>         root: (categories where: #parentid equals: -1) asArray first;
>         labelBlock: [:cat | cat name];
>         childrenBlock: [:cat | categories where: #parentid equals: cat 
> id];
>         yourself
maybe you should put a self halt in your children block to see what happen
childrenBlock: [:cat | self halt. categories where: #parentid equals: 
cat id];


More information about the Seaside mailing list