problem editing entity that extends abstract class using gwt editor mechanism

28 views
Skip to first unread message

Michał Gryczka

unread,
Feb 27, 2012, 9:23:44 AM2/27/12
to google-we...@googlegroups.com
Hi

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 

@Path("vcard.workAddress")

@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.?)


Reply all
Reply to author
Forward
0 new messages