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

        Ivan Khalopik created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Hide
        Howard M. Lewis Ship added a comment -

        Nice catch!

        Show
        Howard M. Lewis Ship added a comment - Nice catch!
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.2.0 [ 12314122 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        8h 56m 1 Howard M. Lewis Ship 05/May/10 17:53
        In Progress In Progress Closed Closed
        22m 49s 1 Howard M. Lewis Ship 05/May/10 18:16

          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