help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] checboxes and number of client/server interactions


From: Nicolas Petton
Subject: Re: [Help-smalltalk] checboxes and number of client/server interactions
Date: Sat, 14 Nov 2009 12:06:25 +0100

Le samedi 14 novembre 2009 à 11:36 +0100, Stefan Schmiedl a écrit :
> On Sat, 14 Nov 2009 12:26:33 +0200
> Bèrto ëd Sèra <address@hidden> wrote:
> 
> > Hi
> > 
> > I'm looking at the example on the ToDoListEditor, which reads
> > completedContents [
> >     <category: 'building'>
> >     ^[:e |
> >         e td text: 'Completed'.
> >         (e td checkbox)
> >             action: [:val | self setItemCompleted: val];
> >             checked: self item completed]
> >     ]
> > 
> > My impression is that by doing this we have an interaction with the
> > remote server per click, am I right?
> 
> Extrapolating from the other message, I'd guess not.
> 
> The action: block tells iliad what should happen once the form
> has been submitted.
> 
> Speculation is fun :-)

It's fun and you're right :)

In fact, to send a request on a click on the checkbox, it would need
#beSubmitOnClick. (If you take a look at TodoListGridWidget, you'll see
that it is used to submit checkboxes on click).

Cheers!


Nico

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

[Prev in Thread] Current Thread [Next in Thread]