[Seaside] Embedded forms

Pavel Krivanek squeak3 at continentalbrno.cz
Sat Nov 18 07:57:25 UTC 2006


On 11/18/06, Ron Teitelbaum <Ron at usmedrec.com> wrote:
> Hi,
>
> It appears that if I render a component that has a form inside it onto
> another form that buttons for the main form only work above the embedded
> component.
>
> I have a component which contains a form, a table and some buttons.
>
> Form
> Table
> Buttons
>
> I embed this component in another form
>
> html form
>
>        html render: myComponent.
>
>
> If I put my button before the rendered component it all seems to work.
>
> html form
>         html submitButton
>
>         html render: myComponent
>
> But if I put my button under the component that has its own form then the
> button does not work.
>
> html form
>         html render: myComponent
>
>         html submitButton
>
> In both cases it appears that the embedded component form is working just
> fine, all the buttons work.  But on the parent form it only works if the
> button comes before the embedded form.
>
> Am I doing something wrong, is there a way to get both forms working
> properly with the button coming after the embedded component?

Look here: http://www.squeaksource.com/ShoreComponents.html
(ShoreComponents-3-pk.2.mcz)
It contains a solution of this problem. Nested forms are not valid in HTML.

-- Pavel


More information about the Seaside mailing list