我設置爲聘用日期默認值adf.currentDate
並獲得以下錯誤:無法創建類型的對象與價值java.lang.String中:adf.currentDate
JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date from type:java.lang.String with value:adf.currentDate
這是如何引起的,我該如何解決?
我設置爲聘用日期默認值adf.currentDate
並獲得以下錯誤:無法創建類型的對象與價值java.lang.String中:adf.currentDate
JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date from type:java.lang.String with value:adf.currentDate
這是如何引起的,我該如何解決?
的問題,因爲在視圖對象的屬性是字符串,你寫的寫它的默認值adf.currentDate其返回oracle.jbo.domain.Date型 所以,你應該屬性的 變化數據類型oracle.jbo.domain .Date 或改變表達adf.currentDate.toString
返回字符串您可以在ADF閱讀下面的鏈接更多關於日期的類 http://mahmoudoracle.blogspot.com/2012/03/date-classes-conversion-in-adf.html
確保u必須選擇Default Value
類型爲Expression
不是a nd屬性的數據類型應爲Date
如果它是adf.currentDate
並且如果它是adf.currentDateTime
則數據類型應該是TimeStamp
。