Workflow validators result in error when using name

XMLWordPrintable

      Using a workflow validator and using the name in the exception results in an error in the attached screenshot:

      throw new com.opensymphony.workflow.InvalidInputException("summary", "Summary is incorrect")

      The expectation is that the error message will be displayed next to the summary field.

      The following will not work:

      throw new InvalidInputException("summary", "Summary is incorrect")
      

      But the following will work although not by the field:

      throw new InvalidInputException("Summary is incorrect")
      

        1. The Bad Error Message.png
          82 kB
          Jonny Carter
        2. The Slightly Better Error Message.png
          37 kB
          Jonny Carter
        3. validator_fails.png
          44 kB
          adammarkham

            Assignee:
            pat (Inactive)
            Reporter:
            adammarkham
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: