Re: GWT ValueProxy and RequestFactory Domain Type error

2012-05-16 Thread kjordan
Your other option is to do a "new BrowserDetailItem(s.name, s.id)" in your query string. On Tuesday, May 15, 2012 3:23:43 PM UTC-5, jmbz84 wrote: > > Solved it. > > The problem was in: tempList = query.getResultList(); > > The result list returned from the query is a List which > couldn't be c

Re: GWT ValueProxy and RequestFactory Domain Type error

2012-05-15 Thread jmbz84
Solved it. The problem was in: tempList = query.getResultList(); The result list returned from the query is a List which couldn't be converted to List. This meant that the return method instead of returning a List which is a ValueProxy, returned a List which can't be sent to the server. The sol

Re: GWT ValueProxy and RequestFactory Domain Type error

2012-05-09 Thread Brandon Donnelson
Have you tried it with out the locator annotation like I noted in my example? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tOBm_piddnkJ. To

Re: GWT ValueProxy and RequestFactory Domain Type error

2012-05-09 Thread jmbz84
Yes I have already declared the ProxyFor @ProxyFor(value = BrowserDetailItem.class, locator = BrowserDetailItemLocator.class) On 8 mayo, 15:18, Brandon Donnelson wrote: > Have you tried setting your @ProxyFor(BrowserDetailItem.class)? I haven't > configured my proxies > > This is how I'd do it.

Re: GWT ValueProxy and RequestFactory Domain Type error

2012-05-08 Thread Brandon Donnelson
Have you tried setting your @ProxyFor(BrowserDetailItem.class)? I haven't configured my proxies This is how I'd do it. *For the client side* @ProxyFor(BrowserDetailItem.class)) public interface BrowserDetailItemProxy extends ValueProxy { public String getName(); public Integer getId(

Re: GWT ValueProxy and RequestFactory Domain Type error

2012-05-08 Thread Brandon Donnelson
Have you tried setting your @ProxyFor(BrowserDetailItem.class)? I haven't configured my proxies This is how I'd do it. *For the client side* @ProxyFor(BrowserDetailItem.class)) public interface BrowserDetailItemProxy extends ValueProxy { public String getName(); public Integer getId(

GWT ValueProxy and RequestFactory Domain Type error

2012-05-07 Thread jmbz84
Hello, Im trying to create a Value Proxy (BrowserDetailItem ) that is formed of a query that only returns a String(name) and a Integer(id). The SERVER code (each class in a different files) public class BrowserDetailItem { private String name; private Integer id; public static Enti