[aida] Ajax using WebElements: how does Aida find and rerun the code?

Janko Mivšek janko.mivsek at eranova.si
Tue Sep 16 22:13:06 CEST 2008


Stephen Davies wrote:

>     But for the life of me I cannot figure out how Aida knows to call
>     the timeField method in order to get the new time.
> 
> 
> Hmm - answering my own question,  Some messing in the debugger and I 
> found #setCreationMethod in WebElement.
> 
> Which is kind of tricky-dicky..., but at least my mystery is solved: its 
> done by magic...

Well, sometimes reflection capabilities of Smalltalk really help, as in 
this case. Here another trick is also used, I'm calling it "climbing on 
the stack". See how the reference to the WebApplication of the creation 
method is found...

Janko

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


More information about the Aida mailing list