[aida] Next thing I don't understand: One added inputFieldAspect works, the second doesn't

Janko Mivšek janko.mivsek at eranova.si
Sat Dec 6 18:33:31 CET 2008


Herbert König wrote:

> extending ADemoAddressApp>>viewMain with:
> e cell  addInputFieldAspect: #firstName for: self observee.
> 
> gives me an input field in which I can change the first name. Hitting
> Enter in that field actually changes the view and going back to the
> address book shows the change. Beautiful, I had expected to have to
> add some code to make the change happen!
> 
> Now I innocently added a second line:
> e newCell addInputFieldAspect: #surname for: self observee.
> 
> and voila, I can hit the Enter key as much as I like, the changes are
> ignored. I tried e cell add.. and e add.. without success.
> 
> Surely some magic happens behind the scenes but I don't know the
> incantations.

So you do something like:

   e cell  addInputFieldAspect: #firstName for: self observee.
   e newCell addInputFieldAspect: #surname for: self observee.
   e newCell addButtonText: 'Save'

So, if you click with a mouse to Save, it stores changes in any case? If 
you click Enter, it should be also posted if this button is the only one 
or the first on the entire page. Note that there is also a search button 
on default webpage ..

Janko


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


More information about the Aida mailing list