Couple of weeks ago Martijn mentioned the idea of nested forms. What
would that mean?
It would allow us to put Form inside other Form. The inner form(s) would
be rendered as div. Outer form would get submitted, but only the inner
form (the one IFormSubmittingComponent.getForm() returns) would be
validated.
I really like this idea, although there are several things to be considered:
a) it would break stylesheets. The inner form will no longer be rendered
as <form, it will be rendered as <div
b) it won't fire onsubmit from the inner form even though
Button.shouldInvokeJavascriptFormOnsubmit returns true. Anyway, is
anyone using this? Sounds a bit like hack to me, because only button and
submit link support that.
WDYT?
-Matej