cancel
Showing results for 
Search instead for 
Did you mean: 

Is there no support for java.util.date & java.util.calendar datatypes?

Former Member
0 Kudos

We are trying to bind the context from model interface to Custom controller, everything is fine. But when we try to bind from Custom controller to View Controller, apparently in the view context, it did not support java.util.Date and java.util.Calendar datatypes. What should we do, do we change the date type to String. Or am I doing something wrong here?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You probably want to use the type "date" from the Java DDIC (data dictionary).

Armin

thomas_chadzelek
Participant
0 Kudos

Yes. As a general rule: whenever your context attribute is used by the UI, it must have a type from the dictionary, not a Java native type. The latter ones are just for internal use within your controller, not for use by the UI.

Final remark: don't be surprised that "date" is mapped to java.sql.Date.

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

this definitely is WD, therefore moved here.