You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/05/05 19:18:02 UTC
[jira] Closed: (TAP5-1130) LinkSubmit component doesn't work when
form contains Select component with default id
[ https://issues.apache.org/jira/browse/TAP5-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1130.
--------------------------------------
Fix Version/s: 5.2.0
Resolution: Fixed
> LinkSubmit component doesn't work when form contains Select component with default id
> -------------------------------------------------------------------------------------
>
> Key: TAP5-1130
> URL: https://issues.apache.org/jira/browse/TAP5-1130
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.7
> Reporter: Ivan Khalopik
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.2.0
>
>
> When form contains Select component with default id ("select") it generate markup like
> <select id="select" name="select">...</select>
> When user clicks on LInkSubmit component on such form nothing happens.
> // linksubmit.js
> createHidden : function()
> {
> var hidden = new Element("input", { "type":"hidden",
> "id": this.element.id + "-hidden",
> "name": this.element.id + "-hidden",
> "value": this.element.id});
> if (this.form.select("input#" + this.element.id + "-hidden").length == 0)
> this.element.insert({after:hidden});
> },
> In this code this.form.select is a form control but not a function.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.