Eelco Hillenius wrote:
a) it would break stylesheets. The inner form will no longer be rendered
as <form, it will be rendered as <div
I'd say that would be easy enough to explain. I wouldn't be worried
about it.
I think so too.
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.
On option could be to traverse all nested forms and call onSubmit on
them. Wouldn't that be easy yet correct?
i meant onsubmit (javascript event). Java Form.onSubmit should be called
only on form that is also validated (the one that is set returned by
IFormSubmittingComponent.getForm()).
the javascript onsubmit event is a bit complicated. Because the nested
forms render as divs, I won't find the form I want to submit easily in
html. There is possible workaround, having each form output it's markup
id, and calling document.getElementById(submittedFormId).onsubmit(); Not
a big deal. I just wanted to know whether we should really support this
feature (calling javascript event on form being submitted) and if we do,
whether we should also support it for ajax submits (which we don't at
this moment).
-Matej
Eelco