[Seaside] Accepting input from parent & child components
Mark Bratcher
mdbratch at gmail.com
Tue Sep 8 11:08:37 UTC 2015
Thank you for the prompt reply, Otto.
I did a "view source" and only found one `<form ...>` very early in the
file, and one `</form>` near the very end. So I believe there is only
one form tag in the HTML.
Also, I didn't not before, than I'm using the WAFormDecoration in the
parent, if that matters.
By "recognize", I mean that I'm not seeing evidence that the callbacks
for changed fields in the child are being triggered.
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.
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
More information about the seaside
mailing list