Monday, February 27, 2012

problem editing entity that extends abstract class using gwt editor mechanism


We are developing webapp with lots of forms and complex model. To make it faster we decided to use gwt editors. We use nested editors in few places. We run into troubleafter refactoring model and making few classes extend common abstract class. The editor does not seem to see the fields that are declared in abstract class. To make it more specyfic:

the model:

public abstract class AbstractAccount {

protected String id;

protected String fullName;

protected VCardInfo vcard = new VCardInfo();



public class Contact extends AbstractAccount implements Serializable {

private static final long serialVersionUID = 1L;

private String firstName;

private String lastName;

private String organization;

private String jobRole;

private String department;



In Contact editor i have defined 


@UiField VCardAddressEditor address;

Now if Contact class does not extend AbstractAccount and just contains fields visible in AbstractAccount - then everything works.

But if I try to acces (via editor) fields declared in abstract class (e.g. vcard) than it does not work.

I would like to know if this is a bug - or i'm doing it wrong - or this just can not be implemented using editors (reflection problems etc.?)

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment