Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5319

StrutsUtils is not defined in validation.js

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 6.1.2
    • 6.4.0
    • Core Tags
    • None

    Description

      This has been reported and fixed a few times, but it is back now. 

      When an s:form has validate="true" then the form-validate.ftl is supposed to include validation.js which works. That file refers to StrutsUtils which is not defined. From what I can see StrutsUtils is defined in the beginning of utils.js which is only included from the head.ftl

      So if no s:head exists, the s:form generates code that does not work. Shouldn't the s:form work correctly even when an s:head is not present? 

      The script file utils.js should be included in form-validate.ftl before the validation.js

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nikos nikos dimitrakas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: