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

FormFieldFocus mixin passes control name, not client id, to JavaScriptSupport.autofocus()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.4
    • Fix Version/s: 5.3.1, 5.4
    • Component/s: tapestry-core
    • Labels:

      Description

      Noticed this while writing up some documentation about dealing with form focus. This works in simple cases where the control name and the client id often are the same value, but won't work in other cases (especially Ajax ones).

      In addition, it is not clear why this mixin is attached to a Form and takes a Field as a parameter rather than attaching to a Field and taking no parameters?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mlusetti Massimo Lusetti
                Reporter:
                hlship Howard M. Lewis Ship
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: