Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-1416

g:hasErrors and g:renderErrors take attribute field as required instead of optional

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: 2.5.2.RELEASE
    • Fix Version/s: 2.5.2.RELEASE
    • Component/s: GRAILS
    • Labels:
    • Environment:
      SpringSource Tool Suite Version: 2.5.2.CI-R6373-B200 Build Id: 201012160259
      Grails 1.3.6
      Groovy-Eclipse plugin Version: 2.1.1.xx-20101215-2100-e36
      Windows Server 2003

      Description

      In the gsp Editor an error is shown when I write for example:

      <g:hasErrors bean="${prefs}">
      <div class="errors">
      <g:renderErrors bean="${prefs}" as="list" />
      </div>
      </g:hasErrors>

      The error shown is "Missing required attribute "field"". But the documentation http://grails.org/doc/latest/ref/Tags/renderErrors.html and http://grails.org/doc/latest/ref/Tags/hasErrors.html clearly states that "field" is optional thus valid code is marked as invalid.

        Attachments

          Activity

            People

            Assignee:
            aeisenberg Andrew Eisenberg
            Reporter:
            waxolunist Christian Sterzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: