Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 22, 2004 at 08:44 PM

    this definitely is WD, therefore moved here.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 22, 2004 at 08:51 PM

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

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.