[aida] Sort elements with links

Janko Mivšek janko.mivsek at eranova.si
Mon May 11 22:11:31 CEST 2009



Francisco A. Lizarralde pravi:
> "IF I COMMENT THE NEXT LINE, i CAN SORT THE COLUMN"
> 		column: 2 addBlock: [ :each |
> 			(WebElement new) addLinkTo: each text: each studentId].

That's exactly what I wrote in additiona mail: you cannot sort columns
with addBlocks.

But in your case you can make links much more simply, use
#columnLinkViews: instead

	...
	columnAspects: #(nil #studentId #surname #name #email);
	columnLinkViews: #(nil main nil nil nil);
	...

#columnLinkViews: specify the view of the link of the each object in in
your case is the equivalent of:

   column: 2 addBlock: [:each |
      WebElement new
	addLinkTo: each text: each studentId view: #main;
	yourself].
	
	
Janko

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list