Tapestry 5
  1. Tapestry 5
  2. TAP5-1130

LinkSubmit component doesn't work when form contains Select component with default id

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.7
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Ivan Khalopik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development