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

@Validate has issues fetching preferred handler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Won't Fix
    • Affects Version/s: UI Framework 1.3
    • Fix Version/s: None
    • Complexity:
      Low
    • Development:

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: