[Seaside] Splitting a form in several components

Avi Bryant avi.bryant at gmail.com
Sun Jan 30 12:31:16 CET 2005


On Sun, 30 Jan 2005 12:25:33 +0100, Martin J. Laubach <mjl at laubach.at> wrote:
>    Say, is it possible to split a form in the following fashion?
> 
>         MainFormComponent >> renderContentOn: html
>                 html form: [
>                         html render: mySubComponent
>                         html submitWithAction: [ self doSomething ]]
> 
>         MySubComponent >> renderContentOn: html
>                 html textInputWithCallback: [ :v | self saveThatValueSomewhere: v ]
> 
>    Will that work or will it blow up in most spectacular fireworks?

Try it :)

It should work just fine.  What doesn't work is nested forms, but as
long as your subcomponent is just using its parent's form there's no
problem.

Avi


More information about the Seaside mailing list