Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1130

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.1.0.7
    • 5.2.0
    • tapestry-core
    • 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.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            sody Ivan Khalopik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: