Nope - adding that doesnt work either.
Is there anything else people have been doing with GWT 2.0 to
instantiate serializable classes on the server?

On Feb 24, 7:02 am, JA <[email protected]> wrote:
> I'm using GWT 2.0, and it looks like it does not need this
> annotation.  I'll try it anyway.
>
> On Feb 23, 9:38 pm, Blessed Geek <[email protected]> wrote:
>
>
>
> > Need more details. Which version of gwt are you using?
>
> > For gwt 1.7 I had to do this.
>
> > It is possible your problem is due to your failure to declare
> > typeargs.
> > Whenever you use your own serializable classes you have to @annotate
> > its structure in the comment section of the code to inform gwt
> > compiler about your datatype.
>
> > For example, to allow you to pass Hashmap<String, String> as
> > parameter, and expecting List<GameResult> to be returned, you have to
> > @annotate the following in your gwt java source.
> > /**
> > * @gwt.TypeArgs toServerData <java.util.HashMap
> > <java.lang.String,java.lang.String>>
> > * @gwt.TypeArgs <com.xxx.testapp.client.GameResult>
> > **/
> > public interface MyGame
> > {
> >  List serviceResponse(
> >   HashMap<String, String> toServerData);
>
> > }
>
> > For gwt 1.6, 1.7, a section of this document would describe use of
> > typeargs 
> > annotation.http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication....
>
> > However, I am unable to locate the same documentation for gwt 2.0. Not
> > sure if it typeargs are still required. but you could try.

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