Tapestry 5
  1. Tapestry 5
  2. TAP5-947

Default name "submit" for submit component breaks javascript function submit()


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


      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.


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        28d 3h 9m 1 Howard M. Lewis Ship 06/Jan/10 18:29
        In Progress In Progress Closed Closed
        13m 41s 1 Howard M. Lewis Ship 06/Jan/10 18:42
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.2.0 [ 12314122 ]
        Resolution Fixed [ 1 ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Inge Solvoll created issue -


          • Assignee:
            Howard M. Lewis Ship
            Inge Solvoll
          • Votes:
            1 Vote for this issue
            0 Start watching this issue


            • Created: