[Seaside] Question about WATree

Brian Brown rbb at techgame.net
Wed Nov 29 04:11:55 UTC 2006


I solved this issue, and it was that the WATree>>initialize uses an  
IdentitySet to compare the items. I changed it to Set and everything  
behaves the way I think it should.

Regards,

Brian



On Nov 22, 2006, at 5:25 PM, Brian Brown wrote:

> 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
<chop>


More information about the Seaside mailing list