GWT Spring Roo: support for a class object inside an ENTITY

21 views
Skip to first unread message

Amit

unread,
Dec 27, 2010, 9:52:34 AM12/27/10
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);
}
});

Amit

unread,
Jan 4, 2011, 11:52:00 AM1/4/11
to Google Web Toolkit
Hi

The below post was published during the holidays with no reply so
far.
I am reposting with the hope that someone (e.g., from the GWT team)
will respond this time.

Waiting for an answer,

Thanks (and happy new year!!!)

Amit.

David Chandler

unread,
Jan 4, 2011, 2:01:09 PM1/4/11
to google-we...@googlegroups.com
Hi Amit,

The Roo team supports the GWT add-on. Best thing to do is add an issue
in the Roo tracker: https://jira.springsource.org/browse/ROO

/dmc

> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

Reply all
Reply to author
Forward
0 new messages