[Seaside] SU Lightbox and GLORP

Sebastian Sastre ssastre at seaswork.com
Tue Sep 25 13:22:09 UTC 2007


Maybe I'm missing something but you shouldn't be using #confirm: instead of
#inform:? I mean just:

	>>remove: anItem

	(self confirm: 'Really?') ifTrue:[self basicRemove: anItem]

	???

Sebastian

> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre 
> de Richard K Eng
> Enviado el: Lunes, 24 de Septiembre de 2007 17:23
> Para: Seaside - general discussion
> Asunto: Re: [Seaside] SU Lightbox and GLORP
> 
> Because when I put code after the call to #inform:, it gets 
> executed immediately and it doesn't wait for either the Yes 
> button or the No button to be clicked in the lightbox.
> 
> Unless I'm doing something really stupid when I call #inform:...
> 
> remove: item
>  | fred |
>  fred := self inform: 'Are you SURE?'.
>  fred
>   ifNotNil: [Transcript cr; show: 'RKE: Not nil.'].
>  Transcript cr; show: 'RKE: After inform.'
> 
> inform: aString
>  ^self lightbox: (GSRemoveVideoLB new addMessage: aString)
> 
> Both lines are printed in the Transcript even before I click 
> on the lightbox buttons.
> 
> Regards,
> Richard
> 
> -----------
> > It's tricky because the SU Lightbox is non-blocking, ie, it doesn't 
> > wait for the #answer. I've spent all day working around 
> this issue and 
> > I think I've solved it. BUT IT IS NOT PRETTY.
> 
> Why do you think the lightbox is non-blocking? WAComponent>>#lightbox:
> uses exactly the same code as WAComponent>>#call: ...
> 
> Lukas
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list