Hello,
I have the following situation.
>From the client code I make an AJAX call:

remoteService.getUser(Long userId);

On the server I do something like that:

public User getUser(Long id){
       User user = new User();

       user.setSomthing("test");//it doesn't matter if I fill the
object from database or with mock data

      return user;//in debug the user is completed with something,
that's for sure.
}

On the client again:

onSuccess(User user){
     //I see that all the fields on User are empty, although from the
server I send a good object, with properties     //completed
}

It's not over.
I my server call return a String it works.

I must say that User object is inherited from another gwt module:
Common.gwt.xml. And I think I did it well beacause GWT will not
compile my project without Common.gwt.xml.

The strange part is that if I make another custom java class lets say
UserContainer and put in my gwt project, NOT in the Common.gwt.xml, a
server call that returns an UserContainer  it works....I have
properties completed.

But if I put in UserContainer  and User property and on the server I
complete the user, when it reaches the client the user property has
properties still blank(null).

The problem seems to be with the Java files from inherited modules,
but I don't know where is the problem.

I hope I have an interesting problem.
Have you all have an Idea?


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