checboxes and number of client/server interactions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

checboxes and number of client/server interactions

Bèrto ëd Sèra
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?

Berto


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: checboxes and number of client/server interactions

Stefan Schmiedl
On Sat, 14 Nov 2009 12:26:33 +0200
Bèrto ëd Sèra <[hidden email]> 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 :-)
s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: checboxes and number of client/server interactions

Nicolas Petton
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 <[hidden email]> 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

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment