[Seaside] Newbie question Seaside book.

Sean Allen sean at monkeysnatchbanana.com
Mon May 10 11:22:22 UTC 2010


I havent read the Seaside book but while that design might be good for
teaching purposes,
there is quite a lot not to like about it "out in the real world".

That said, what doesnt work properly with the cancel button?



2010/5/10 José Perez <asertus at gmail.com>:
> Dear Allen:
>
> I have just followed the steps in the book. Having the class Contact,
> using its "database", an OrderedCollection.
>
> If I do just what it is written, it is OK, works fine, and reference
> to each contact is OK. Problem starts if I change the editContact:
> method, original is:
>
> editContact: aContact
>
>     editor contact: aContact
>
> But this does not work properly with the "cancel" button.., so I tried:
>
>  |copy|
>
>     copy := aContact copy.
>
>     editor contact:  copy.
>
>         editor onAnswer: [ :answer |
>
>                         (answer)
>
>                        ifTrue: [ Contact removeContact: aContact; addContact: copy
>                                        ]
>
>                        ]
>
> And the problem is that I do not get this new "copy", work properly..,
> I just wanted to learn how to solve the problem regarding the "cancel"
> button.
>
> I thank any help...
>
> Best regards,
>
> Jose
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list