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

@Validate has issues fetching preferred handler

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Won't Fix
    • UI Framework 1.3
    • None
    • 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.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mogoodrich Mark Goodrich
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: