Tapestry
  1. Tapestry
  2. TAPESTRY-195

Cannot disable auto-focus feature in ValidField

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0
    • Fix Version/s: 4.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Operating System: MacOS X
      Platform: Macintosh

      Description

      The method addSelect(IRequestCycle) (line 131) adds JavaScript code to the body
      in order to automatically select and focus the ValidField. Though this feature
      is very nice it would be useful if there was a way to disable it. For example
      let's assume a rather long page where the form is located at the end of the
      page. The current implementation causes the browser to jump to the end of the
      page and therefore hide the beginning of the page. A simple solution might be to
      add a parameter to ValidField that triggers the code generation. But if you have
      many ValidFields in a form this solution isn't very convenient. Personally I
      would say that this "option" belongs to the Form component but then ValidField
      needs to talk to the Form component in some way. If you like I could develop a
      solution myself and present it afterwards?

        Activity

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Lars Hoss
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development