Hi Experts,
My first posting, so please excuse any clumsiness.
The Background:
Within a click handler I am calling a RemoteService for storing data in a
datastore. As I do not only want to store a simple element I defined my own
class "SaveObject". As I also want to store different types of Data, I
created subclasses of SaveObject. For all attributes I created getter and
setter Methods.
The problem:
Within the click handler I create one of the mentioned subclasses of
SaveObject:
MySubclass newSubclass = new MySubclass();
Within the constructor of the Subclasse a setter is called to set values of
a string array called "Attributes".
The next step is setting "Values" with an identic setter as used in the
constructor :
newSubclass.setValues(new String[] {"test1", "test2", "test3");
And finally I send it all to the RemoteService:
datastore.save(newSubclass,
new AsyncCallback<String>() {
public void onFailure(Throwable caught) {
Window.alert(+caught.getLocalizedMessage());
}
public void onSuccess(String result) {
Window.alert(result);
}
});
In debug mode I now see that within the implementation of the save method
the Array "Attributes" still has the values set in the constructor, but the
values set with the setter method have become "null"
Any Ideas?
Thanks a lot in advance!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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-appengine-java?hl=en.