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
- is depended on by
-
PROV-27 Put @Validate annotation back on the Person parameter in the saveProvider method within the ProviderEditFragmentController
-
- Closed
-
- is related to
-
TRUNK-3383 HandlerUtil.getPreferredHandler(Class<H> handlerType, Class<T> type) throws an exception if top-ranked handlers have the same order ranking
-
- Closed
-