form name & id collision
------------------------
Key: TAPESTRY-859
URL: http://issues.apache.org/jira/browse/TAPESTRY-859
Project: Tapestry
Type: Bug
Components: Framework
Versions: 4.0
Environment: 4.0
Reporter: Norbert Sándor
I have 2 forms on a page:
template
<form jwcid="@Form"></form>
<form jwcid="form"></form>
specification
<component id="form" type="Form" />
The generated HTML:
<form ... name="Form" id="Form">....</form>
<form ... name="form" id="form">...</form>
So the name & id attributes of the 2 forms have almost the same value, they
differ only in the case of the first character.
This causes strange behaviour when submitting: clicking on a LinkSubmit (I
tested only with LinkSubmit) in the second form will submit the first form, not
the second.
It works as expected when I name the second form as "Form" in which case the
generated HTML is
<form ... name="Form" id="Form">....</form>
<form ... name="Form_1" id="Form_1">...</form>
Regards,
Norbi
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]