Hi,
maybe I've some more ideas about this problem.
With the simple code above it works; but I've a bean with several
field. For example


BeanExample

private long id;
private Date date;
private String text;

This bean has getter and setter; when I get the value of date's field
I print his class:

Window.alert("class: "+objet.getDate().getClass());

And the class of the objet is "java.sql.Date" instead of
"java.util.Date". In the bean I've imported ONLY java.util.Date.
I think the bug is on Gilead that I used on every bean.

Thanks very much




On 5 Gen, 20:22, Y2i <[email protected]> wrote:
> > Just copied and tested above code in 2.1.1 and works fine in
> > development mode.
>
> This is what I said earlier: the example also works for me in GWT
> 2.1.1...
>
> > Looking at the exception, you are using the setHours() method in the
> > sql Date object...
>
> But if I replace java.util.Date with java.sql.Date the example would
> not compile because java.sql.Date does not have a default
> constructor...http://download.oracle.com/javase/6/docs/api/java/sql/Date.html
>
> A mystery...
>
> Initially I thought it might be that setHours() was being passed an
> Integer instead of an int and the Integer was null, but the call was
> explicit setHours(13)...
>
> What if you call date.setHours(12) or date.setHours(11)?
>
> Also, check your project settings, may be your project is referring to
> both GWT 2.1.1 and 2.0 at the same time, which may cause some side
> effects.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to