Wednesday 20 March 2013

Converting String to oracle.jbo.domain.ClobDomain in adf

Hi,

I got an error - " Cannot convert Testing Clob<br/> of type class java.lang.String to class oracle.jbo.domain.ClobDomain " in the UI.

Such as below -



I found this issue occurs when we are having an attribute of type Clob in DB and and we use it in UI as an Input text or Rich text Editor which support String as a default.

The issue got resolved by adding a converter="oracle.genericDomain" attribute in the text field.

Sample code :

<af:richTextEditor value="#{bindings.test.inputValue}"
                  shortDesc="#{bindings.test.hints.tooltip}"
                  id="it1" converter="oracle.genericDomain">


  *Comments and feedback are most welcomed, Thanks.