call: and answer: failing

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

call: and answer: failing

squeakman
Greetings,

I have two subclasses of SUComponents namely, VeForm and VePage.  A
VePage contains aVeForm.

The VeForm is a simple form with a Submit and a Cancel button. It does
an answer: when the Submit or Cancel button is hit.

The following code works perfectly and I hit the breakpoint:

      response := self call: aVeForm.
      response halt.

But if I do the following setup and then call of aVePage

     aVePage := VePage new.
     aVePage add: aVeForm.      "adds aVeForm as a child of aVePage"
     response := self call: aVePage.
     response halt.

This does not return when the user hits the Submit button on the form.
It just re-displays aVePage.

Can you tell me what I am doing wrong?

Thanks,
Frank

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: call: and answer: failing

squeakman
Squeaker wrote:

> Greetings,
>
> I have two subclasses of SUComponents namely, VeForm and VePage.  A
> VePage contains aVeForm.
>
> The VeForm is a simple form with a Submit and a Cancel button. It does
> an answer: when the Submit or Cancel button is hit.
>
> The following code works perfectly and I hit the breakpoint:
>
>      response := self call: aVeForm.
>      response halt.
>
> But if I do the following setup and then call of aVePage
>
>     aVePage := VePage new.
>     aVePage add: aVeForm.      "adds aVeForm as a child of aVePage"
>     response := self call: aVePage.
>     response halt.
>
> This does not return when the user hits the Submit button on the form.
> It just re-displays aVePage.
>
> Can you tell me what I am doing wrong?
>
> Thanks,
> Frank

Humm... I think I figured this out, I found the answer here:
http://www.shaffer-consulting.com/david/Seaside/Embedding/index.html

I should have RTFM

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside