Tips on using af:media to display OrdImage
When you use af:media to display OrdImage type though ADF binding, you are expected to help the binding layer by mentioning the special treatment requirement for the source attribute. Failing to do may result in the following error ;)
Solution is simple, open the page definition and key in CustomInputHandler="OrdDomainValueHandler" for the attribute which is bound to OrdDomain type. The OrdDomainValueHandler class serves as the custom handler for intermedia objects. Note that af:media will use the OrdDomainValueHandler to extract values for specific attributes( source, innerHeight, innerWidth etc. ) which can't be read directly from the associated ViewObject.
Example:
javax.el.PropertyNotFoundException: The class 'oracle.ord.im.OrdImageDomain' does not have the property 'media'
Solution is simple, open the page definition and key in CustomInputHandler="OrdDomainValueHandler" for the attribute which is bound to OrdDomain type. The OrdDomainValueHandler class serves as the custom handler for intermedia objects. Note that af:media will use the OrdDomainValueHandler to extract values for specific attributes( source, innerHeight, innerWidth etc. ) which can't be read directly from the associated ViewObject.
Example:
JSF tag:
<af:media source="#{bindings.Image.inputValue.source}"
contentType="#{bindings.Image.inputValue.media.mimeType}" id="ot1"/>
Page definition entry:
<attributeValues IterBinding="ImageView1Iterator"
id="Image" CustomInputHandler="OrdDomainValueHandler">
<AttrNames>
<Item Value="Image"/>
</AttrNames>
</attributeValues>
hi
ReplyDeletecan you please get a brief description for using to make a video run in the website.. am using oracle jdeveloper 11.1.1.4
This is really a valuable post... The info shared is helpful and valuable. Thank you for sharing.
ReplyDeleteAviation Academy in Chennai
Air hostess training in Chennai
Airport management courses in Chennai
Ground staff training in Chennai
aviation training in Chennai
air hostess academy in Chennai
Airline Courses in Chennai
Ground staff training in Chennai