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

The input validation documentation incorrectly shows validation occuring in the success event handler method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3.2, 5.1.0.5
    • None
    • documentation
    • None

    Description

      The example in http://tapestry.apache.org/tapestry5/guide/validation.html has to be fixed as a consequence of TAPESTRY-1972 .

      Instead of this...

      String onSuccess()
      {
      if (!authenticator.isValid(userName, password))

      { form.recordError(passwordField, "Invalid user name or password."); return null; }

      return "PostLogin";
      }

      ...it should be...

      String onValidateForm()
      {
      if (!authenticator.isValid(userName, password))

      { form.recordError(passwordField, "Invalid user name or password."); }

      }

      String onSuccess()

      { return "PostLogin"; }

      Attachments

        Issue Links

          Activity

            People

              bobharner Bob Harner
              geoffcallender Geoff Callender
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: