You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2006/07/23 17:12:15 UTC

[jira] Resolved: (TAPESTRY-859) form name & id collision

     [ http://issues.apache.org/jira/browse/TAPESTRY-859?page=all ]

Jesse Kuhnert resolved TAPESTRY-859.
------------------------------------

    Fix Version/s: 4.1
       Resolution: Fixed

Component id calculation/renders have been revamped in 4.1, this shouldn't be able to happen anymore.

> form name & id collision
> ------------------------
>
>                 Key: TAPESTRY-859
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-859
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>         Environment: 4.0
>            Reporter: Norbert Sándor
>             Fix For: 4.1
>
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org