[aida] Duplicated Menu

Janko Mivšek janko.mivsek at eranova.si
Wed Aug 13 12:18:10 CEST 2008


Giuseppe Luigi Punzi wrote:

>>> IncigestApp>>companyMnu
>>>    | e |
>>>    e := WebElement new.
>>>    e
>>>        addButtonText: '<- Back '
>>>        action: #back.
>>>    e addSpace.
>>>    e
>>>        addButtonText: 'New Company'
>>>        action: #addCompany.
>>>    e addBreak.
>>>    e addBreak.
>>>    ^ self add: e

Aha! Look at the last line! You need to return this element, not add it 
to the app. That's why you have 4 occurrences of that menu on your app 
view. So: ^e !

Janko

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


More information about the Aida mailing list