Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Stefan Kanev (skanev)
Assigned to: Nobody/Anonymous (nobody)
Summary: input name="submit" messing forms up
the myForm.submit refers to the input, not the function
that would submit the form. so, myForm.submit() doesn't
really do anything. Instead, it produces hard-to-trace
errors when you have FormComponents with id "submit".
It is a common pitfall that is easy for people with
have a hard time understanding why
SubmitLink/AjaxSubmitLink doesn't work for them.
I think it will be wonderful, if Wicket doesn't allow
FormComponents named 'submit' and throws a exception
for trying to make one. This isn't fool-proof, since if
the user does <input name="submit" /> without attaching
any wicket component to it, it will still resolve to
the same error.
Alternatively, the form submitting java script might be
changed, so it does if (typeof form.submit !=
'function') so it can display a good error message to