You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Inge Solvoll (JIRA)" <ji...@apache.org> on 2009/12/09 16:21:18 UTC
[jira] Created: (TAP5-947) Default name "submit" for submit
component breaks javascript function submit()
Default name "submit" for submit component breaks javascript function submit()
------------------------------------------------------------------------------
Key: TAP5-947
URL: https://issues.apache.org/jira/browse/TAP5-947
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.1.0.5
Reporter: Inge Solvoll
When using submit component without specifying a name or id, the component is given the name "submit". This causes javascript error if a script later tries to invoke form.submit(), because the submit button has "hijacked" the submit function's name.
A developer can easily stumble into this problem himself by naturally naming his button "submit", but tapestry shouldn't make the worst possible name the default one. Change the name/id to "submitButton" or something similar.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-947) Default name "submit" for submit
component breaks javascript function submit()
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-947:
-----------------------------------------
Assignee: Howard M. Lewis Ship
> Default name "submit" for submit component breaks javascript function submit()
> ------------------------------------------------------------------------------
>
> Key: TAP5-947
> URL: https://issues.apache.org/jira/browse/TAP5-947
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Inge Solvoll
> Assignee: Howard M. Lewis Ship
>
> When using submit component without specifying a name or id, the component is given the name "submit". This causes javascript error if a script later tries to invoke form.submit(), because the submit button has "hijacked" the submit function's name.
> A developer can easily stumble into this problem himself by naturally naming his button "submit", but tapestry shouldn't make the worst possible name the default one. Change the name/id to "submitButton" or something similar.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TAP5-947) Default name "submit" for submit
component breaks javascript function submit()
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-947.
-------------------------------------
Resolution: Fixed
Fix Version/s: 5.2.0
> Default name "submit" for submit component breaks javascript function submit()
> ------------------------------------------------------------------------------
>
> Key: TAP5-947
> URL: https://issues.apache.org/jira/browse/TAP5-947
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Inge Solvoll
> Assignee: Howard M. Lewis Ship
> Fix For: 5.2.0
>
>
> When using submit component without specifying a name or id, the component is given the name "submit". This causes javascript error if a script later tries to invoke form.submit(), because the submit button has "hijacked" the submit function's name.
> A developer can easily stumble into this problem himself by naturally naming his button "submit", but tapestry shouldn't make the worst possible name the default one. Change the name/id to "submitButton" or something similar.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-947) Default name "submit" for submit
component breaks javascript function submit()
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-947:
-----------------------------------------
Assignee: Howard M. Lewis Ship
> Default name "submit" for submit component breaks javascript function submit()
> ------------------------------------------------------------------------------
>
> Key: TAP5-947
> URL: https://issues.apache.org/jira/browse/TAP5-947
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Inge Solvoll
> Assignee: Howard M. Lewis Ship
>
> When using submit component without specifying a name or id, the component is given the name "submit". This causes javascript error if a script later tries to invoke form.submit(), because the submit button has "hijacked" the submit function's name.
> A developer can easily stumble into this problem himself by naturally naming his button "submit", but tapestry shouldn't make the worst possible name the default one. Change the name/id to "submitButton" or something similar.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TAP5-947) Default name "submit" for submit
component breaks javascript function submit()
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-947.
-------------------------------------
Resolution: Fixed
Fix Version/s: 5.2.0
> Default name "submit" for submit component breaks javascript function submit()
> ------------------------------------------------------------------------------
>
> Key: TAP5-947
> URL: https://issues.apache.org/jira/browse/TAP5-947
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Inge Solvoll
> Assignee: Howard M. Lewis Ship
> Fix For: 5.2.0
>
>
> When using submit component without specifying a name or id, the component is given the name "submit". This causes javascript error if a script later tries to invoke form.submit(), because the submit button has "hijacked" the submit function's name.
> A developer can easily stumble into this problem himself by naturally naming his button "submit", but tapestry shouldn't make the worst possible name the default one. Change the name/id to "submitButton" or something similar.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.