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);
            }
        });

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to