[Seaside] Re: WATree redraw

Hilaire Fernandes hilaire at ofset.org
Tue Jun 3 21:28:04 UTC 2008

Hilaire Fernandes a écrit :

>> SUTreeReport from the Scriptaculous package.
> Yes, that's it.
> Thanks

The component is very useful to browse a tree.
I need to add callbacks to the elements of the first row in the tree. 
When a link is hit a report is displayed in another component (a 
WATableReport). But again at this moment the page is recomputed so back 
to the top of the screen. I will try Randal suggestion, this should be 

competencyTree := SUTreeReport  new
	roots: (Array with: (IFIModels competency: 6));
	children: [ :competency | IFIModels linksTo: competency ];
	addColumn: [ :competency | [:html  | (html anchor)
		attributeAt: 'title' put: competency title;
		callback: [self selectCompetency: competency];
		with: (competency title truncateWithElipsisTo: 50) ]]
	   label: 'Notions';

More information about the seaside mailing list