[Seaside] Store Demo Broken

Avi Bryant avi.bryant at gmail.com
Sun Sep 11 01:36:20 CEST 2005


On Sep 8, 2005, at 5:50 PM, Ramon Leon wrote:

> Anyone notice the store demo doesn't work anymore if you try and check
> out.  Seems like addMessage: is being sent to a  
> WAValidationDecoration,
> but it's a subclass of WAPresenter, rather than WAComponent which can
> handle that message?  I'm running latest 2.6a2v5.
>
> getAddressWithMessage: aString
>     ^ self call:
>         ((WAStoreAddressEditor new
>             validateWith: [:a | a validate])
>                 addMessage: aString)

Thanks.  #validateWith: was recently changed to return the validation  
decoration rather than self.  I think that's probably the correct  
behavior, however, so this method should be:

getAddressWithMessage: aString
     ^ self call:
         (WAStoreAddressEditor new
             validateWith: [:a | a validate];
             addMessage: aString;
             yourself)

I'll commit that fix shortly.

Avi


More information about the Seaside mailing list