In any case, you have to be very careful with the Date class in GWT
(serialization, or manipulation on client and server).
See here what I'm talking about:
http://ui-programming.blogspot.com/2010/02/gwt-date-and-timestamp-rpc.html
Cheers
--
You received this message because you are subscribed
Agreed a serialization error would have been better..because then I
could fix it in development before production runtime in the browser.
As far as ...as it comes out of your database calls..., I'm using
hibernate so it will be whatever Java type I specify. It pulls out of
the database as
Good idea Kozura. So I went ahead and added this line to the code:
java.sql.Date testThisType = new java.sql.Date(new
Date().getTime());
the typeId$ is 179. So to answer your question no it's not
transmitting it as a java.sql.Date.
On Apr 28, 10:14 pm, kozura koz...@gmail.com wrote:
Any chance
Ok through some trial and error I determined the type (181) to be
java.sql.Timestamp.
This is still a dangerous BUG though, why is GWT changing my object
types? I mean they have typeId$ 22 so I see no reason to convert that
into 181.
On Apr 30, 11:00 am, javaunixsolaris lpah...@gmail.com wrote:
Used to be RPC would just not allow these types and you'd get a
serialization error, now they work but maybe was better to get the
error and deal with it upfront.. Anyways I find it best just to
always translate everything that might get sent back to Date as it
comes out of your database calls,
I have a BUG that only manifests while in JavaScript, I couldn't
recreate it in HostedMode or even -Dgwt.args=-prod mode (supposed to
run javascript right? but I digress).
So I hit the application with Firebug and walked over the JavaScript.
Turns out I have some java.util.Date that are set as
Any chance the RPC transmitted type is java.sql.Date?
On Apr 28, 4:24 pm, javaunixsolaris lpah...@gmail.com wrote:
I have a BUG that only manifests while in JavaScript, I couldn't
recreate it in HostedMode or even -Dgwt.args=-prod mode (supposed to
run javascript right? but I digress).
So I