Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 22, 2004 at 08:44 PM

    this definitely is WD, therefore moved here.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2004 at 08:51 PM

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

    Armin

    Add a 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.