It's odd that the RPC documentation still talks about typeArgs. I've just double checked, and I have systematically removed all typeArg statements relating to RPC parameters/return values from the last project I upgraded to 1.5.3. All now replaced with 1.5. syntax and it works fine.
My assumption is that specifying the type for collections in 1.5 syntax (i.e. List<MyType>) means the GWT compiler uses that info in the same way it used to rely on typeArg tags. I sincerely hope I'm right about that......but those docs have got me worried. On Dec 14, 12:24 pm, "HT(dk)" <[email protected]> wrote: > Read:http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-... > > And in general > read:http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-... > > On Dec 13, 9:52 pm, Cris <[email protected]> wrote: > > > Hi > > My requirement is as below. > > 1. I have a DTO as below with setters and getters for the same > > package com.gwt.sample.client.data > > > public class TempDTO implements IsSerializable > > { > > private String name; > > private String condition; > > } > > > 2. My RPC stuff is as below > > package com.gwt.sample.client > > public interface MyService extends RemoteService > > { > > List getNames(); > > } > > > package com.gwt.sample.client > > public interface MyServiceAsync > > { > > void getNames(AsyncCallback async); > > } > > > 3. Servlet is > > public class MyServlet extends RemoteServiceServlet implements > > MyService > > { > > public List getNames() > > { > > List rs = new ArrayList(); > > TempDTO dto1 = new TempDTO(); > > dto1.setName("A1"); > > dto1.setCondition("Set"); > > rs.add(dto1); > > return rs; > > } > > } > > > When made a request to this MyServlet I am getting strange error in > > browser "Could not complete the operation due to error c00ce514 > > number:" > > This error message is (throwable.getMessage()) is displaying in > > onFailure() method. > > > The same code is working fine if I pass List of strings. The problem > > is only with List of DTOs. > > > Please, can anyone help me. > > > Thansk, > > Cris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
