[Seaside] WALabelledFormDialog

Pablo Iaria iariap at tutopia.com
Tue Sep 14 20:04:28 CEST 2004


Thanks a lot Avi!  That silly mistake was the problem.


Pablo.-



> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Avi Bryant
> Sent: Martes, 14 de Septiembre de 2004 02:57 p.m.
> To: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: Re: [Seaside] WALabelledFormDialog
> 
> 
> On Sep 14, 2004, at 2:04 PM, Pablo Iaria wrote:
> >
> > But no OK button is displayed. Am I missing something?
> 
> The OK button is not actually part of the WALabelledFormDialog, but is
> provided by a WAFormDecoration.  You can see this if you toggle halos
> on the store example, for example when looking at the AddressEditor.
> 
> However, the WALabelledFormDialog should add the FormDecoration for you
> (as long as you haven't overridden #addFormByDefault to return false).
> It does this in its #initialize method.  My guess is that you implement
> #initialize and don't send "super initialize".  It's a good practice to
> do that, although I must confess I often/usually forget to do it myself
> as well.
> 
> The reason for all of this is that you sometimes want to compose
> multiple dialogs into a single form.  This way, you can simply send
> #removeForm to the inner dialogs and their FormDecorations will go
> away, avoiding nested form tags and multiple OK buttons.
> 
> Avi
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside



More information about the Seaside mailing list