weird, it looks like i can pass through classes primitive values as
int, char etc but not complex objects extending JavaScriptObject, cos
I cannot cast them anymore (BTW no errors got, just empty values)

Julio

On Dec 10, 10:43 am, julio <[email protected]> wrote:
> before this:
>
> BeanData bd = data.createObject().cast();
>
> I tried with a normal:
>
> BeanData bd = (BeanData) data;
>
> and:
>
> BeanData bd = data.cast();
>
> but they don't work.
>
> BTW debugged them I saw that the data passed has the same refId of the
> "original", so it looks like is just not cast at all.
>
> On Dec 10, 10:22 am, skrat <[email protected]> wrote:
>
> > You can't, what you do here is that you create new (and empty)
> > JavaScriptObject, and cast it to your type. It seems that you think
> > you're copying the object, but that's certainly not true. I'm not sure
> > what the problem is, if you need to pass that instance to another
> > class, you can do it without any tranformation.

-- 
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