Re: Example to test RequestFactory in JRE

2010-12-30 Thread Simon Majou
I completed with that code from RequestFactoryJreTest : DomainRequestFactory rF = RequestFactoryMagic.create(DomainRequestFactory.class); EventBus eventBus = new SimpleEventBus(); ServiceLayer serviceLayer = ServiceLayer.create(); SimpleRequestProcessor processor = new

Re: 2.1.1 Documentation Please

2010-12-30 Thread Simon Majou
Where do you find Service Layer into those 2 links ? -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: Example to test RequestFactory in JRE

2010-12-30 Thread Simon Majou
That's it thank you ! -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

requestfactory don't allow appengine parent relationship ?

2010-12-30 Thread Simon Majou
I am using GAE and when I create an entity having parents with Request Factory, I get this exception: com.googlecode.objectify.NotFoundException: No entity was found matching the key: Key{kindClassName=com.pipo.MyEntity, parent=null, id=2} This exception is launched when calling: public

Example to test RequestFactory in JRE

2010-12-29 Thread Simon Majou
Hello, Is there some example of how to test request factory code in JRE ? I found that : http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/requestfactory/server/RequestFactoryJreTest.java?r=9485 But I am not sure how to do the actual test ? -- You

Re: Example to test RequestFactory in JRE

2010-12-29 Thread Simon Majou
I tried to use the class RequestFactoryMagic but I get the following exception: java.lang.IllegalArgumentException: Attempting to edit an EntityProxy previously edited by another RequestContext Here is my code: DomainRequestFactory rF =

Something other than an int was returned from JSNI method

2010-12-19 Thread Simon Majou
A wierd bug appeared in my application : com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.user.client.Timer::createTimeout(Lcom/google/gwt/user/client/Timer;I)': JS value of type JavaScript object(13), expected int at

Re: Something other than an int was returned from JSNI method

2010-12-19 Thread Simon Majou
The issue is general to my application, when I comment the faulty code I get the error on another native type : com.google.gwt.dev.shell.HostedModeException: Something other than a boolean was returned from JSNI method '@com.google.gwt.user.client.impl.HistoryImplTimer::init()': JS value of

Re: Something other than an int was returned from JSNI method

2010-12-19 Thread Simon Majou
Damn the bug is coming for chrome 10 and the plugin ... https://groups.google.com/d/topic/google-web-toolkit/1hcrVTxvOh0/discussion -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Request factory: key xxx is not permitted to be set

2010-12-14 Thread Simon Majou
/google-web-toolkit?hl=en. -- Cordialement / Best regards, Simon Majou -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email

Re: Request factory: key xxx is not permitted to be set

2010-12-14 Thread Simon Majou
It works fine with 2.1.1-rc1. -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: Request factory: key xxx is not permitted to be set

2010-12-13 Thread Simon Majou
Ok in fact Request factory checks the fields of the entity and not the accessors (into the validateKeys method of the class JsonRequestProcessor). It is quite unexpected as we expose accessors into the proxy and not fields. So it seems impossible to use Request factory with relationships using

Request factory: key xxx is not permitted to be set

2010-12-12 Thread Simon Majou
I want to create an object with a relationship with request factory. I don't have the actual related object, just its id. So I added into the object a getter and setter to convert the id into a Key : KeyUser ownerKey; public KeyUser getOwnerKey() { return ownerKey; } public void

Re: RequestFactory don't play nice with guice?

2010-12-06 Thread Simon Majou
Thanks for the info. On Dec 5, 10:48 pm, Thomas Broyer t.bro...@gmail.com wrote: On 5 déc, 01:06, Simon Majou si...@majou.org wrote: When creating an object with RequestFactory the @inject fields are not injected. I guess RequestFactory don't use guice to create the objects. How can I

RequestFactory don't play nice with guice?

2010-12-04 Thread Simon Majou
When creating an object with RequestFactory the @inject fields are not injected. I guess RequestFactory don't use guice to create the objects. How can I delegate objects creation to Guice? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Requestfactory: server side request are static...

2010-11-28 Thread Simon Majou
I think it would be better to move the requests out of the entity in their own class and annotate them just like for the proxy (something like @requestsFor(Entity.class)). Would it be possible? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Request factory: java.lang.NoClassDefFoundError: org/json/JSONException

2010-11-27 Thread Simon Majou
Hello, I am trying to run the dynatablerf example for request factory, and I get : bodyh2HTTP ERROR: 500/h2preorg/json/JSONException/pre pRequestURI=/gwtRequest/ph3Caused by:/ h3prejava.lang.NoClassDefFoundError: org/json/JSONException at