I'm setting default value for Hire Date as adf.currentDate
and getting following error:
JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date from type:java.lang.String with value:adf.currentDate
How is this caused and how can I solve it?
The problem because the attribute in view object is string and you write write its default value adf.currentDate which return oracle.jbo.domain.Date type So you should change data type of attribute to oracle.jbo.domain.Date or change expression to return string by adf.currentDate.toString
You can read more from below link about dates classes in ADF http://mahmoudoracle.blogspot.com/2012/03/date-classes-conversion-in-adf.html