Uploaded image for project: 'UI Framework'
  1. UI Framework
  2. UIFR-42

@Validate has issues fetching preferred handler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Ready for Work
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: UI Framework 1.3
    • Fix Version/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      When you annotate an object with the @Validate attribute, it attempts to validate that object with the preferred handler.

      The line that fetches the preferred validator is UiFrameworkUtil:316 –

      Validator validator = HandlerUtil.getPreferredHandler(val.value(), result.getTarget().getClass());
      

      The issue here is that the underlying core getPreferredHandler method throws an exception if it can't determine a preferred handler--PersonValidator and PatientValidator both have order=50, so if you try to validate a Patient you get this exception.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mogoodrich Mark Goodrich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: