I have a problem to get a class serialized by gwt. i don't know why
but i never had problem serialize Map<something here, something there>
but i allways get this error if i try to serialize Lists?!
To cut a long story short here are the classes that gwt can't
serialize:
public class AdminUnit implements IsSerializable{
private String name;
private String id;
private AULevel level;
private ArrayList<AdminUnit> children;
public AdminUnit(String name, String id, AULevel level) {
this.name = name;
this.id = id;
this.level = level;
children = new ArrayList<AdminUnit>();
}
public AdminUnit(String name, String id, AULevel level,
List<AdminUnit> children){
this(name,id,level);
addAll(children);
}
public void addAll(List<AdminUnit> addChildren){
children.addAll(addChildren);
}
public void addChild(AdminUnit child){
children.add(child);
}
public String getName() {
return name;
}
public String getId() {
return id;
}
public AULevel getLevel() {
return level;
}
public List<AdminUnit> getChildren() {
return children;
}
}
for sake of completness i made the used enum also serializable:
public enum AULevel implements IsSerializable{
Land, County, Community
}
so what to make to get this class thru the wire?
--
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.