Uncategorised

I get JBO-25200: Application module is not connected to a database exception. What can be the reason?

Problem Time to time “JBO-25200: Application module is not connected to a database” exception is raised while browsing ADF application Solution Tune ADF application module by disabling “Support Dynamic JDBC Credentials”. However this solution may not work in your case, depends on the root cause. Comment If I understand this option correctly, it is needed only when application users must…

Continue Reading
Uncategorised

ADF ViewObject query selects values into wrong attributes?

Problem    In the view object result set value of particular attribute has wrong value. It belongs to another attribute of the same view object, usually to previous one in the sequence. Solution    Each view object attribute has property “Selected in query”. It must be selected if attribute is fetched using SQL query. If it is not selected and…

Continue Reading
Uncategorised

ADF how to stretch table vertically and horizontally?

How to stretch ADF table vertically to fill maximum available vertical space in browser? Answer: Put table into af:panelStretchLayout component center facet. Put dimensionsFrom=”parent” attribute into af:panelStretchLayout (parent of af:panelStretchLayout component must stretch its children) How to stretch ADF table horizontally to fill maximum available horizontal space in browser? Answer: Put table into af:panelStretchLayout component center facet. Add styleClass=”AFStretchWidth” attribute to af:panelStretchLayout   Example:  <af:panelStretchLayout…

Continue Reading
Uncategorised

ADF java.lang.ClassCastException: …ViewRowImpl cannot be cast to …ViewRow ?

For example:java.lang.ClassCastException: model.DepartmentsViewRowImpl cannot be cast to model.common.DepartmentsViewRow JDeveloper, when generating View Object Row client interface sometimes goes wrong with class definition. Such error can be displayed when implementation of class is not defined. In particular error sample –  “implements DepartmentsViewRow” is missing in DepartmentsViewRowImpl class:public class DepartmentsViewRowImpl extends ViewRowImpl implements DepartmentsViewRow {…}

Continue Reading
Uncategorised

How to output text with line breaks in ADF ?

   If we use regular “af:outputtext” component to print text with line breaks (new line symbols like “n” or  “rn”)  in ADF – we don’t succeed. Text is displayed in one line regardless of those symbols. Instead we need to use  “af:outputFormatted” component. But it is not enough. While it does not understand “n” or “rn” symbols, we need to use…

Continue Reading