on 12-04-2006 8:16 PM
In the thread below entitled "Question on initialize method (p. 25 of WDJ Tutorial #3 ) ", Christian Benoit agreed that there is an error on p.12 of Tutorial #3.
So to correct this error, I went back and defined Birthday as a simple type using the built-in type date instead of the simple type string (because Christian suggested that this change will get rid of the error message which results from coding the line given on page 25 in the initialize method:
wdContext.currentContextElement().setBirthday(new Date(0));
The problem is, when I do this, I get a different error message as follows:
"The method setBirthday(java.sql.date) in the type
IPrivateForm.IContextElement is not applicable for
the arguments (java.util.Date)"
I remember seeing this choice come up, but I don't remember where. So where do I indicate that I want java.sql.date and not java.util.date ???????
Go to the "imports" section, remove the line "import java.util.Date", press CTRL-SHIFT-O and select java.sql.Date.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I remember now - it was when I organized my imports that I got the "sql" vs "util" prompt on "date". So I will delete the IPrivateForm import statement, do the organize again, and see if this lets me rechoose date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.