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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.5, 5.0.6
    • 5.0.7
    • tapestry-core
    • 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

        1. tapestry-form-noclient.zip
          7 kB
          Christian Köberl

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: