Re: How to send data back to client side code?

2010-08-23 Thread Sree ...
Looks like it has got good material .. Should go through it... btw., i implemented the DTO's and that worked fine for me On Mon, Aug 23, 2010 at 9:52 AM, Tan Duy tanduy2...@gmail.com wrote: Hi, Did you view example at http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html ?

Re: How to send data back to client side code?

2010-08-22 Thread Tan Duy
Hi, Did you view example at http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html ? Please refer http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html This is a excellent tutorial. I also think it's so difficult to me, but I will try to learn more :)

Re: How to send data back to client side code?

2010-08-19 Thread Arthur Kalmenson
GTW-RPC can only serialize objects that are emulated or new ones you create that implement Serializable. There are some solutions to get other stuff to serialize, but that's probably not what you want. If you make a Data Transfer Object (DTO) that only contains serializable fields, you'll be able

Re: How to send data back to client side code?

2010-08-19 Thread Tan Duy
Thanks for your help, I'm trying to read and test some demo. So, I realize something about GWT-RPC. Yeah, I will try to make a Data Transfer Object. On Aug 19, 11:12 pm, Arthur Kalmenson arthur.k...@gmail.com wrote: GTW-RPC can only serialize objects that are emulated or new ones you create

Re: How to send data back to client side code?

2010-08-19 Thread Sree ...
also.. please post back here if you succeed! Am also trying to implement the DTO but not sure how far i can do that :) On Fri, Aug 20, 2010 at 12:22 AM, Tan Duy tanduy2...@gmail.com wrote: Thanks for your help, I'm trying to read and test some demo. So, I realize something about GWT-RPC.

Re: How to send data back to client side code?

2010-08-18 Thread Tan Duy
I also have some problems when I use JDO in GAE + GWT [ERROR] Errors in 'file:/I:/Workspace/jdo/src/com/jdo/util/ Employee.java' [ERROR] Line 2: The import com.google.appengine cannot be resolved [ERROR] Line 14: Key cannot be resolved to a type [ERROR] Line 33: Key cannot be

Re: How to send data back to client side code?

2010-08-18 Thread Arthur Kalmenson
You'll have to build a DTO to transfer these objects to the client side, I don't think GWT understands GAE Key objects. See this: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html -- Arthur Kalmenson On Wed, Aug 18, 2010 at 8:03 AM, Tan Duy tanduy2...@gmail.com wrote: I also

Re: How to send data back to client side code?

2010-08-18 Thread Tan Duy
Thank you, I'm a new comer. I'll try to learn more. All information in this group is so useful. I'm just don't know how to start. This is my app: http://diaryoftour.appspot.com/ http://code.google.com/p/diaryoftour/ Hope everybody can help me Thanks so much On Aug 18, 7:50 pm, Arthur

Re: How to send data back to client side code?

2010-08-18 Thread Sree ...
I actually thought of the same.. DTO. But I have no idea how to implement that.. so going through the DTO documentations over net On Wed, Aug 18, 2010 at 6:20 PM, Arthur Kalmenson arthur.k...@gmail.comwrote: You'll have to build a DTO to transfer these objects to the client side, I don't think

Re: How to send data back to client side code?

2010-08-18 Thread Tan Duy
Okay, we try to solve it. I haven't understand GWT RPC yet. I want to use MVP model. But I'm familiar with C# than Java. Hope everything will be better. I'm trying to try because this is my last chance. Thank you. On Aug 18, 9:04 pm, Sree ... gattasrika...@gmail.com wrote: I actually thought of

Re: How to send data back to client side code?

2010-08-17 Thread Jeff Schnitzer
This is a major PITA with GAE+JPA. You'll likely also need to detach your entities from the JPA session, which AFAIK is impossible with the JPA interface - only with the JDO interface. My advice is throw out JPA and use Objectify. You can use your entities in GWT as-is (assuming they are

Re: How to send data back to client side code?

2010-08-17 Thread lineman78
Yeah, I ran into this issue a year ago when I was working with GAE + GWT-RPC. The client side object cannot have references to any code not associated with a GWT module, so there are a few options for you here. 1) create a translator and maintain 2 versions of the class; 1 for the client(without

Re: How to send data back to client side code?

2010-08-14 Thread cokol
again - you shall not have any references inside your translatable classes to classes from 3rd party! translatable classes are those to be compiled to javascript and which reside in client and shared packages. 3rd party classes are those where you dont have sourcecode from. consider your Employee

How to send data back to client side code?

2010-08-13 Thread Sree ...
Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java

Re: How to send data back to client side code?

2010-08-13 Thread lineman78
Any object referenced in client-side code must be in a client package. The new version of the GWT plugin for eclipse added a shared package suffix, but it is added to the gwt.xml as a client side package. On Aug 13, 11:39 am, Sree ... gattasrika...@gmail.com wrote: Am not sure this belongs to

Re: How to send data back to client side code?

2010-08-13 Thread cokol
hi the problem is that gwt does not have source of your Employee class, since you have put it into the server package, you always have 3 packages to handle (as per default): client server shared everything under client becomes javascript after compilation and is not aware of anything contained

Re: How to send data back to client side code?

2010-08-13 Thread Sree ...
okey... thanks alot guys i ll try to make those changes and will update here also thx for so quick responses.. am loving it On Sat, Aug 14, 2010 at 2:31 AM, cokol eplisc...@googlemail.com wrote: hi the problem is that gwt does not have source of your Employee class, since you have put it

Re: How to send data back to client side code?

2010-08-13 Thread Sree ...
Modified the Employee.java as below *public class Employee implements IsSerializable{* then moved the Employee.java to shared package. [eclipse updated all references well] Now when I GWT to compile its saying Compiling module project.xxx Validating newly compiled units [ERROR] Errors