ClassCastException "Java.Lang.String Cannot Be Cast To <CustomDomain>" When Using af:dynamicComponent
(Doc ID 2252405.1)
Last updated on MARCH 01, 2019
Applies to:Oracle JDeveloper - Version 184.108.40.206.0 and later
Information in this document applies to any platform.
ADF provides the chance to create Custom, Validated Data Types by using Domains to define fields in Entity Objects as described in
Oracle® Fusion Middleware Developing Fusion Web Applications with Oracle Application Development Framework 12c (12.2.1)
However in ADF 220.127.116.11.0, especially with dynamic components, an exception similar to the following is thrown while creating a Business Domain Layer Using Entity Objects:
where <CustomDomain> is the full classpath of the class representing the defined custom domain.
For a common JSF page a workaround is to set the converter of an af:inputText from "default" to "oracle.genericDomain" in the component Properties.
However, in case of a dynamic JSF page using af:dynamicComponent such workaround does not work.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document