[Seaside] Multiple forms on 1 page question

Lukas Renggli renggli at gmail.com
Mon Jan 21 08:54:53 UTC 2008


> If I have more than 1 form on a page (e.g. from multiple inPlaceEditors, or
> select boxes), the user completes a form, and I take some Ajax action in one
> form:

I don't know if InPlaceEditors use a form internally, but you
certainly don't need to add one yourself.

> As long as the callbacks of Form-1 does not re-render Form-2, it seems I can
> submit one form without losing the open/partially edited state of the other.
>
> Is this a reasonable and correct way to use Ajax callbacks & forms?

Yes.

With AJAX you can even trigger multiple forms with one request. I've
never tried that, but as far as I see this should work out of the box.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list