[Seaside] Accepting input from parent & child components

Otto Behrens otto at finworks.biz
Tue Sep 8 15:01:15 UTC 2015


> By "recognize", I mean that I'm not seeing evidence that the callbacks for
> changed fields in the child are being triggered.

So if you set breakpoints in the callbacks, you are sure that they are
not triggered?

So I am hearing that you are using plain old subclasses of
WAComponent? And you override #children in your subclass? And then
#renderContentOn:?

What do you call to render your sub components?

A better idea of your code structure or snippets of it may help.

> I'm not sure how to determine the version of Seaside I have. I am using GNU
> Smalltalk 3.2.91-b98173d, so it's whatever Seaside package revision they've
> included with that.

I have no idea how to check that with GNU; we're using
Monticello/Metacello to load into Pharo and GemStone. And even in our
environment it is difficult to figure out.

>
> Regards
> Mark
>
>
> On 9/8/2015 6:25 AM, Otto Behrens wrote:
>>>
>>> The parent input fields and subcomponent input fields are within the same
>>> html `form`. However, when I click the submit button (done at the parent
>>> level), only the input items rendered by the parent are recognized. Any
>>> inputs provided by the user through the embedded, rendered subcomponent
>>> are
>>> ignored.
>>
>> I would carefully look at the HTML that you produce here. And then
>> make sure I don't have nested forms. Remember that if you use Chrome
>> (and I suspect Firefox and others too), the HTML you see with the
>> "inspect element" menu does not give you the real HTML. Chrome removes
>> nested forms. Make sure you look at the raw HTML.
>>
>> If you say "recognized" I assume you're talking about inputs posted
>> with the submit, which translates into callbacks processed by Seaside.
>> If so, your inputs are not in the same form tag or you have nested
>> form tags.
>>
>>> Is it possible to do what I'm attempting to do?
>>
>> Yes, we're doing this a lot, so we can find out what's going on here.
>>
>> Cheers
>> Otto
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list