Amit
unread,Dec 27, 2010, 9:52:34 AM12/27/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi,
We are running successfully the Expenses example using Spring-Roo.
Now we want to add a simple class object ("MyAddress" as illustrated
below) to one of the entities (e.g., Employee).
We first tried doing this using the "embeddable - embedded "
mechanism. But this is currently not supported by the Roo gwt plug-in.
So we also checked the option of accomplishing this by the Roo "other"
field command. Following is the error we got going this way.
Any idea what did we do wrong?
What is the best way to accomplish this (we already tried asking at
the Spring Roo forum...).
Thanks in advance for any help,
Amit Kleinmann
public class Employee {
@NotNull
private String displayName;
@NotNull
@Size(min = 3, max = 30)
private String userName;
private MyAddress myAddress;
private String homeAddress;
...
}
public class MyAddress {
private String myCity;
}
Roo generates the following statements at the
"EmployeeEditActivityWrapper_Roo_Gwt" class, and the class can not be
compiled since MyAddressProxy can not be resolved.
import com.ibmotion.expenses1.client.managed.request.MyAddressProxy;
...
void setMyAddressPickerValues(Collection<MyAddressProxy> values);
...
view.setMyAddressPickerValues(Collections.<MyAddressProxy>emptyList());
requests.myAddressRequest().findMyAddressEntries(0,
50).with(com.ibmotion.expenses1.client.managed.ui.MyAddressProxyRenderer.instance().getPaths()).fire(new
Receiver<List<MyAddressProxy>>() {
public void onSuccess(List<MyAddressProxy> response) {
List<MyAddressProxy> values = new
ArrayList<MyAddressProxy>();
values.add(null);
values.addAll(response);
view.setMyAddressPickerValues(values);
}
});