RCP passing inherited arguments

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

RCP passing inherited arguments

Postby numicago » Mon Apr 04, 2011 5:43 am

Hello, I'm still very green in GWT, and I'm trying to do the following:

I have two projects, the first (not my project) contains classes that can't be defined as IsSerializable classes.

The second one (my project) uses some of the classes from the first project, and in this case I need to send objects between server side and client side, so they need to be IsSerializable.

My aproach was to obviously extend the original classes and make the "sub" class IsSerializable. but this seems not to be working.

some example:

Code: Select all
/////////Original class
public class City implements {
   private String name;

   public City(String name)
      this.name = name;
   public City()
   {   }
   public String getName()
   {       return name;   }

//Class to extend the original one
public class Cidade extends City implements IsSerializable{
   public Cidade(String name)
   {        super(name);   }

   public Cidade()
   {   }   

then on the server side I create an object of type Cidade and send it to the client. I can get the object, only with all its contents null.
Can someone confirm me that this can't be made? If so, what am I doing wrong and how to fix this. I wouldn't really like to be copying the full classes from the first project.
Thank you very much.
Posts: 1
Joined: Mon Apr 04, 2011 5:28 am

Re: RCP passing inherited arguments

Postby Eric Clayberg » Mon Apr 04, 2011 6:23 am

I would recommend posting general GWT questions to our (Google's) GWT Forum.

We would like to keep this forum focused on GWT Designer itself. Thank you.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests