Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1748

Field validators continue to generate client-side JavaScript even though the Form is configured to not do client-side validation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5, 5.0.6
    • Fix Version/s: 5.0.7
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      The T5 validators generate the validation JavaScript although the form has set "clientValidation=false". The form does not inlude the required JS-libs when "clientValidation=false. This leads to an JS error on the client side.

      This script is generated with clientValidation=false:
      <script language="javascript" type="text/javascript">
      <!--
      Event.observe(window, "load", function() {
      Tapestry.Field.required('nameField', 'You must provide a value for
      Name.');
      });
      // -->
      </script>

      This is the error in Firefox:
      Error: Event.observe is not a function
      Source: http://localhost:8080/tapestry-form-noclient/
      Line: 18

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hlship Howard M. Lewis Ship
                Reporter:
                koc Christian Köberl
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: