Re: RequestFactory module - queue, retry and non atomic batching..

2013-07-23 Thread GWTter
Hi, The mechanism looks pretty good from the demo, nice. I would only say that I'm not sure I would use the same retry message for both network and authentication failures. Do you really want to keep retrying authentications for any other reason than a network failure? On Tuesday, July 23, 201

RequestFactory .with() to access non-relation (primitive) properties?

2013-07-23 Thread GWTter
Hi all, I have a String username field on a user entity which I'd rather not populate whenever I request it which is why I have not defined the getter in the EntityProxy. This works fine, however there are some instances where I would like to have RequestFactory populate that string field

Re: RequestFactory module - queue, retry and non atomic batching..

2013-07-23 Thread salk31
I've added a Gmail like UI component and added it to the demo... On Thursday, July 18, 2013 6:42:15 PM UTC+1, salk31 wrote: > > Doh. Looked to see how long it would take to put it up on GAE and only > took ten minutes to actually do it. > > http://gwt-rf-queue.appspot.com/ > > So good old DynaTab

Re: RequestFactory module - queue, retry and non atomic batching..

2013-07-18 Thread salk31
Doh. Looked to see how long it would take to put it up on GAE and only took ten minutes to actually do it. http://gwt-rf-queue.appspot.com/ So good old DynaTableRf but with gwt-rf-queue but with the Transport replaced and a bit of extra UI. -- You received this message because you are subscr

Re: RequestFactory module - queue, retry and non atomic batching..

2013-07-18 Thread James Horsley
I'm also quite interested but haven't had time to look. On 18 July 2013 10:00, salk31 wrote: > Ho k... I'll be very interested to hear your thoughts... If you think it > is fixable maybe GAE demo with some UI may be next step for me? > > > On Thursday, July 18, 2013 9:49:47 AM UTC+1, Thomas Bro

Re: RequestFactory module - queue, retry and non atomic batching..

2013-07-18 Thread salk31
Ho k... I'll be very interested to hear your thoughts... If you think it is fixable maybe GAE demo with some UI may be next step for me? On Thursday, July 18, 2013 9:49:47 AM UTC+1, Thomas Broyer wrote: > > FYI, I still haven't found the time to look at it… > > On Thursday, July 18, 2013 9:26:35

Re: RequestFactory module - queue, retry and non atomic batching..

2013-07-18 Thread Thomas Broyer
FYI, I still haven't found the time to look at it… On Thursday, July 18, 2013 9:26:35 AM UTC+2, salk31 wrote: > > H. Guess not a lot of demand then. Will hold off doing any more work > on this. > > Cheers > > Sam > > On Wednesday, July 17, 2013 9:04:53 AM UTC+1, salk31 wrote: >> >> https://gi

Re: RequestFactory module - queue, retry and non atomic batching..

2013-07-18 Thread salk31
H. Guess not a lot of demand then. Will hold off doing any more work on this. Cheers Sam On Wednesday, July 17, 2013 9:04:53 AM UTC+1, salk31 wrote: > > https://github.com/salk31/gwt-rf-queue > > I've been allowed to open source this and given two hours a week to work > on it... > > I thou

RequestFactory module - queue, retry and non atomic batching..

2013-07-17 Thread salk31
https://github.com/salk31/gwt-rf-queue I've been allowed to open source this and given two hours a week to work on it... I thought it was worth sharing now that it compiles and there is a working demo. I've grafted it onto the dynatablerf sample and added some controls to fake auth and network

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread salk31
Thanks Thomas, I think I get what RequestBatcher does. We do the same but just passing around the RequestContext... Seems like I wasn't making life difficult by mistake. Sort of a relief. I've asked permission to share our code. I've a horrible feeling it will get stuck with the lawyers. Many

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread Thomas Broyer
On Friday, July 12, 2013 12:18:36 PM UTC+2, salk31 wrote: > > Sadly I've looked at the source quite a few times. > > Can it be used for our use case (Send contents of the Editor to the server > multiple times and perform different service methods each time)? > No. RequestBatcher only manages th

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread salk31
Sadly I've looked at the source quite a few times. Can it be used for our use case (Send contents of the Editor to the server multiple times and perform different service methods each time)? We got stuck as we could only add (not remove) Requests to the RequestContext. The code looks to me that

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread Thomas Broyer
On Friday, July 12, 2013 11:48:56 AM UTC+2, salk31 wrote: > > Hi Thomas, > > I really do struggle with RequestBatcher sorry... However is it correct > that it uses a single RequestContext? and that if any Request in a > RequestContext is a success or a failure then the whole RequestContext is

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread salk31
}); manager.start(); transport.setDefaultSource(primary); NB if you fire a RequestContext in the normal way it gets captured by the QosManager... Really ugly code relying on the single threaded nature of JS. Might ask for more hooks from the core GWT/RequestFactory. btw This is definitely me

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread salk31
> But I'd be interested in seeing your code, particularly how you handle the > feedback in this case (and what your "pipes" are about and how you use > them); actually, I think I'd like to see a more complete sample, but I so > much love digging into libraries'

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread Thomas Broyer
pipes" are about and how you use them); actually, I think I'd like to see a more complete sample, but I so much love digging into libraries' code that I'd like to see it too ;-) > > Cheers > > Sam > > On Friday, July 12, 2013 9:24:32 AM UTC+1, Jens wrote:

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread salk31
shelf solution? Cheers Sam On Friday, July 12, 2013 9:24:32 AM UTC+1, Jens wrote: > > Batching in RequestFactory can be done using RequestBatcher [1] and > retries, as well as sending status events about pending requests, can be > done by implementing a custom RequestTransport [2] f

Re: RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread Jens
Batching in RequestFactory can be done using RequestBatcher [1] and retries, as well as sending status events about pending requests, can be done by implementing a custom RequestTransport [2] for RequestFactory. Not sure if there is anything pre-implemented in case of the RequestTransport

RequestFactory queue manager (network retry etc)... already exist and/or worth making FOSS?

2013-07-12 Thread salk31
Hello, We have some code that lets us manage the requests from the RequestFactory. So do things like retry after auth failure or network outage... So simple usage is something like: NonAtomicBatch batch = new NonAtomicBatch(); batch.add(new RfEntry(someRequestFactoryRequest)); batch.add(new

Re: Requestfactory Appengine - a bug?

2013-07-04 Thread Jens
Server stack trace would be interesting. Looks like a NullPointerException on server side. Extend RequestFactoryServlet and then use the protected super constructor which allows you to provide a custom ExceptionHandler. The custom ExceptionHandler could log the server exception to see whats goi

Requestfactory Appengine - a bug?

2013-07-04 Thread Nermin
Hello Group, I am using GWT2.5.1 wit standard package (DataNucleus on Appengine). In case client creates an Entity that holds string longer than 500 chars, the RequestFactory call will create an error since the Appengine dos not allow Strings longer that 500 characters. - This is how it should

Re: RequestFactory validate entity

2013-06-27 Thread Thomas Broyer
On Thursday, June 27, 2013 12:20:37 PM UTC+2, Jens wrote: > > RequestFactory has many limitations that can make it hard to use in an >> application. Once those limitations will be removed (next year maybe; in >> GWT 3.0; depends if/when I have time to do it), it

Re: RequestFactory validate entity

2013-06-27 Thread Jens
> > RequestFactory has many limitations that can make it hard to use in an > application. Once those limitations will be removed (next year maybe; in > GWT 3.0; depends if/when I have time to do it), it'll be much better and > become as usable as GWT-RPC. > Out of inte

Re: RequestFactory validate entity

2013-06-27 Thread Thomas Broyer
On Thursday, June 27, 2013 9:59:57 AM UTC+2, Miklós Szabó wrote: > > Thank you for your answer! > > To build up a frontend to use complex business services (Spring based > application with service and business layer on top of it) would you > recomend GWT RPC instead of Reque

Re: RequestFactory validate entity

2013-06-27 Thread Miklós Szabó
Thank you for your answer! To build up a frontend to use complex business services (Spring based application with service and business layer on top of it) would you recomend GWT RPC instead of RequestFactory? On 27 June 2013 00:25, Thomas Broyer wrote: > > > On Wednesday, June 26, 201

Re: RequestFactory validate entity

2013-06-26 Thread Thomas Broyer
On Wednesday, June 26, 2013 4:09:55 PM UTC+2, Miklós Szabó wrote: > > Hi! > > I've a question on bean validation using RequestFactory. Here's my > scenario. > > There's an application based on Spring Framework with a service layer. A > WebApplicationCont

RequestFactory validate entity

2013-06-26 Thread Miklós Szabó
Hi! I've a question on bean validation using RequestFactory. Here's my scenario. There's an application based on Spring Framework with a service layer. A WebApplicationContext is initialized and the services can be used by firing RequestContext on client side. Let's sup

Re: Requestfactory, Embedded objects and .with

2013-06-26 Thread aurelie . virgile
Oh... thanks Thomas for the link and your answer which make sense. Sorry about this silly question, was looking into domain object Le mercredi 26 juin 2013 10:04:22 UTC+2, Thomas Broyer a écrit : > > > "phones" is the name of the property, corresponding to a getPhones() > getter (note: on the pro

Re: Requestfactory, Embedded objects and .with

2013-06-26 Thread Thomas Broyer
On Wednesday, June 26, 2013 9:03:47 AM UTC+2, aurelie...@gmail.com wrote: > > Hi chaps, > > Have a problem understanding one thing regarding .with > > In the following > example<http://code.google.com/p/gwtinaction2/source/browse/trunk/gwtia-ch08-requestfactory/src/c

Requestfactory, Embedded objects and .with

2013-06-26 Thread aurelie . virgile
Hi chaps, Have a problem understanding one thing regarding .with In the following example<http://code.google.com/p/gwtinaction2/source/browse/trunk/gwtia-ch08-requestfactory/src/com/manning/gwtia/ch08/v1/client/TestPanel.java?spec=svn216&r=216> , http://code.google.com/p/gwtinacti

Using the RequestFactory to pass oauth token with gwt-oauth2

2013-06-23 Thread Paul Mazzuca
I have successfully obtained a token using the gwt-oauth2 api in my GWT project. Using the RequestFactory for RPC, how do I relay that token to a backend of my choosing? For example, if I were using app engine, how does app engine now know who the requesting user is? What must be done from

Re: RequestFactory, entity Id not populated when it reaches the server?

2013-06-18 Thread GWTter
Hi Thomas, I just submitted the issue http://code.google.com/p/google-web-toolkit/issues/detail?id=8204, thanks again. On Tuesday, June 18, 2013 9:39:33 AM UTC+2, Thomas Broyer wrote: > > > > On Monday, June 17, 2013 9:55:09 PM UTC+2, GWTter wrote: >> >> Hi, >> >> So I went back using the dev t

Re: RequestFactory, entity Id not populated when it reaches the server?

2013-06-18 Thread Thomas Broyer
On Monday, June 17, 2013 9:55:09 PM UTC+2, GWTter wrote: > > Hi, > > So I went back using the dev tools, inspected the payload, and confirmed > what I had before: the ID is not set at all in the user object payload. > Just to make sure I wasn't crazy or missing something I created just a User

Re: RequestFactory, entity Id not populated when it reaches the server?

2013-06-17 Thread GWTter
Hi, So I went back using the dev tools, inspected the payload, and confirmed what I had before: the ID is not set at all in the user object payload. Just to make sure I wasn't crazy or missing something I created just a User object and tried to save it. I checked the payload in that request and

Re: RequestFactory, entity Id not populated when it reaches the server?

2013-06-17 Thread GWTter
Hi Ümit, I was actually checking the payload via the DefaultRequestTransport, I could see the user proxy object but I could not see the id anywhere in the payload. I had also put a println in the setID method in the DTO but it was never called which is what I thought was strange since the objec

Re: RequestFactory, entity Id not populated when it reaches the server?

2013-06-17 Thread Ümit Seren
For debugging: Check the RF payload with Chrome Developer Tools and put a breakpoint in the siteId() method of your backend DTO (it should be called after the object is created). On Monday, June 17, 2013 3:59:02 AM UTC+2, GWTter wrote: > > Hi all, > > I have the same setup as in question > ht

Re: RequestFactory Issue 6115

2013-06-17 Thread Thomas Broyer
On Monday, June 17, 2013 10:47:56 AM UTC+2, Nermin wrote: > > > > Am Sonntag, 16. Juni 2013 23:52:08 UTC+2 schrieb Thomas Broyer: >> >> >> I'll see if I can improve the documentation. Feel free to propose patches >> yourself though: http://www.gwtproject.org/makinggwtbetter.html#webpage >> > > T

Re: RequestFactory Issue 6115

2013-06-17 Thread Nermin
Am Sonntag, 16. Juni 2013 23:52:08 UTC+2 schrieb Thomas Broyer: > > > > On Friday, June 14, 2013 5:55:03 PM UTC+2, Nermin wrote: >> >> Hello Thomas, >> >> Open Session In View is the right approach to go for. Thank you for this >> advice! >> I have implemented it and it works fine now. >> >> How

RequestFactory, entity Id not populated when it reaches the server?

2013-06-16 Thread GWTter
Hi all, I have the same setup as in question https://groups.google.com/d/msg/google-web-toolkit/GUQjZ98mL7s/MoA2gEMmS28J . I've included the relevant code from the question below for quick reference. My problem is that once the booking entity gets to the server and I look for the user, the use

Re: RequestFactory Issue 6115

2013-06-16 Thread Thomas Broyer
On Friday, June 14, 2013 5:55:03 PM UTC+2, Nermin wrote: > > Hello Thomas, > > Open Session In View is the right approach to go for. Thank you for this > advice! > I have implemented it and it works fine now. > > However, I have one question regarding OSIV-Pattern: > In the Hybernate example (s

Re: RequestFactory Validation Tool must be run for.... (error)??? How come?

2013-06-16 Thread lounes . ferhat
can you help me for building your exemple using netbeans? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com.

Re: RequestFactory Issue 6115

2013-06-14 Thread Nermin
ist >> is always empty). >> I checked the DB, it is all fine there. >> >> Can it be that the Bug 6115 has not been fixed, even though its status >> says so, or am I doing something wrong here? >> > > Have you checked whether the caller is called? if it is,

Re: RequestFactory Issue 6115

2013-06-13 Thread Nermin
jobCategoryReq.findAllJobCategories().with("*subCategories*"); >> req.fire(receiver); >> >> ... The call will return categories but without subcatgeories. (The list >> is always empty). >> I checked the DB, it is all fine there. >> >> Can it be tha

Re: RequestFactory Issue 6115

2013-06-13 Thread Thomas Broyer
tatus > says so, or am I doing something wrong here? > Have you checked whether the caller is called? if it is, does it return a populated set? You're supposed to use an open-session-in-view (aka session-per-request) pattern with RequestFactory, rather than creating/closing an EntityM

RequestFactory Issue 6115

2013-06-13 Thread Nermin
Hello group, Is the issue 6115 Fixed in GWT 2.5 or not?? http://code.google.com/p/google-web-toolkit/issues/detail?id=6115 My problem is that on a entity with recursive relation the ancestors are not loaded when calling with(ancestors). Here is my code: @Entity public class *JobCategory *{

RequestFactory/EntityProxy basic architecture/design question

2013-06-13 Thread Rich Martin
Hi GWT Gurus, I have a pretty fundamental question about how to design the server-side of my system using RequestFactory. I'm sure I'm missing something pretty obvious, so I apologize in advance for the stupidity of the question. I have a server side entity (using Objectify for p

Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem

2013-06-07 Thread CM
pengine-api-labs-1.6.0.jar >>> appengine-jsr107cache-1.6.0.jar >>> apps-marketplace.jar >>> datanucleus-appengine-1.0.10.final.jar >>> datanucleus-core-1.1.5.jar >>> datanucleus-jpa-1.1.5.jar >>> geronimo-jpa_3.0_spec-1.1.1.jar >>> ger

Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem

2013-06-05 Thread Thomas Broyer
.5.jar >> geronimo-jpa_3.0_spec-1.1.1.jar >> geronimo-jta_1.1_spec-1.1.1.jar >> gwt-servlet-deps.jar >> gwt-servlet.jar >> jdo2-api-2.3-eb.jar >> jsr107cache-1.1.jar >> objectify-3.1.jar >> requestfactory-apt.jar >> requestfactory-server.jar >>

Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem

2013-06-05 Thread CM
s-core-1.1.5.jar > datanucleus-jpa-1.1.5.jar > geronimo-jpa_3.0_spec-1.1.1.jar > geronimo-jta_1.1_spec-1.1.1.jar > gwt-servlet-deps.jar > gwt-servlet.jar > jdo2-api-2.3-eb.jar > jsr107cache-1.1.jar > objectify-3.1.jar > requestfactory-apt.jar > requestfactory-server.

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2013-06-05 Thread सौरभ भारती
Just like everyone else, I was stuck at this validation error. Following http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation, I deleted the classes manually from WEB-INF folder and that did the job. Basically, obfuscator classes should appear in .apt_generated fol

Re: Compiling Error (not Present in Eclipse) with Generics (requestfactory related interface)

2013-05-29 Thread GWTter
Thanks yet again Thomas. Although I don't extend RequestContext there directly it does interact with it so that I have some interfaces extending both RequestContext and this interface which maybe causing the issue. So I think you're right. I added my post to the issue, hopefully it helps. I gu

Re: Compiling Error (not Present in Eclipse) with Generics (requestfactory related interface)

2013-05-29 Thread Thomas Broyer
On Tuesday, May 28, 2013 7:54:29 PM UTC+2, GWTter wrote: > > Hi all, > > I can't figure this out, haven't found anything on the interwebs, and it's > really, really getting to me. I have the following interface: > > public interface PersistedClassRC Serializable> { > Request save(P entityProxy,i

Re: RequestFactory Could not parse payload: payload[0] = N

2013-05-29 Thread Stephan White
We just ran into the same issue. SEVERE: Unexpected error java.lang.RuntimeException: Could not parse payload: payload[0] = N at com.google.web.bindery.autobean.vm.impl.JsonSplittable.create( JsonSplittable.java:70) at com.google.web.bindery.autobean.shared.impl.StringQuoter.create( StringQuoter

Compiling Error (not Present in Eclipse) with Generics (requestfactory related interface)

2013-05-28 Thread GWTter
Hi all, I can't figure this out, haven't found anything on the interwebs, and it's really, really getting to me. I have the following interface: public interface PersistedClassRC { Request save(P entityProxy,int version); Request delete(P entityProxy); Request findById(N id); } Now in Eclipse t

RequestFactory Session timeout

2013-05-24 Thread Nils
Hello, i'm having a problem when using RequestFactory and resetting the session timeout. Here is what i have: - GWT + GWTP Projekt - A separate GWT Projekt for RequestFactory Service - All running on JBoss 6.1.0 Final - I'm also using JAAS and SSO Valve (didn't get it to work

Re: RequestFactory sending entire list even when nothing changed in the list

2013-05-08 Thread Thomas Broyer
On Tuesday, May 7, 2013 6:28:00 PM UTC+2, Yan wrote: > > Hi there, > > Using GWT 2.4 request factory, but observed this. > > I have an EntityProxy (parent) containing a list of EntityProxy > (children). I put the parent in edit mode, update an attribute on the > parent and then persist the pa

RequestFactory sending entire list even when nothing changed in the list

2013-05-07 Thread Yan
Hi there, Using GWT 2.4 request factory, but observed this. I have an EntityProxy (parent) containing a list of EntityProxy (children). I put the parent in edit mode, update an attribute on the parent and then persist the parent, I noticed that the entire list of children are sent across the

Re: Entity not persisted, using JDO,RequestFactory.

2013-04-27 Thread Thomas Broyer
On Friday, April 26, 2013 6:05:42 AM UTC+2, Aman Sharma wrote: > > I am still not able to persist poll entity using Requestfactory in GWT. > Please point out if there's anything wrong with following code. > > view.setMsg("preparing"); > PollReques

Re: Entity not persisted, using JDO,RequestFactory.

2013-04-25 Thread Aman Sharma
I am still not able to persist poll entity using Requestfactory in GWT. Please point out if there's anything wrong with following code. view.setMsg("preparing"); PollRequest pr = requestFactory.pollRequest(); UserRequest ur = requestFactory.userRequest(); final UserProx

Re: Entity not persisted, using JDO,RequestFactory.

2013-04-25 Thread Aman Sharma
I am able to persist this entity in a servlet with following code: PersistenceManager pm = PMF.getInstance().getPersistenceManager(); User abcd = new User(); abcd.setEmail("em...@email.com"); abcd.setName("name"); VerificationToken token1 = new VerificationToken(abcd,VerificationToken.Verifica

Re: Entity not persisted, using JDO,RequestFactory.

2013-04-24 Thread Aman Sharma
I'm only having problem persisting this entity. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to

Re: Entity not persisted, using JDO,RequestFactory.

2013-04-24 Thread Aman Sharma
I have checked localhost:/_ah/admin there's no Poll entity created in datastore. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+un

Re: Entity not persisted, using JDO,RequestFactory.

2013-04-24 Thread Aman Sharma
No,there's no error or exception. And the control never reaches onSuccess block. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub

Re: Entity not persisted, using JDO,RequestFactory.

2013-04-24 Thread Thomas Broyer
What do you mean? There's an error? or your method isn't called but everything goes as if it had? On Wednesday, April 24, 2013 3:12:51 PM UTC+2, Aman Sharma wrote: > > I am trying to persist this http://pastebin.com/7KtXaBGe entity using > following piece of code: > > PollReques

Entity not persisted, using JDO,RequestFactory.

2013-04-24 Thread Aman Sharma
I am trying to persist this http://pastebin.com/7KtXaBGe entity using following piece of code: PollRequest pr = requestFactory.pollRequest(); PollProxy createdPoll = pr.create(PollProxy.class); createdPoll.setQuestion(view.getQuestion()); createdPoll.setOptions(view.asEditor().ge

Re: RequestFactory VS Cloud Endpoints (App Engines Java Rest API)

2013-04-16 Thread Sathyanarayanan Thilakan
> >>> >>> http://www.youtube.com/watch?v=v9TG7OzsZqQ&feature=player_detailpage#t=910s >>> >>> It looks like the new Cloud Endpoints implement a lot of >>> the functionality that makes RequestFactory attractive. >>> >>>- Patch com

Re: RequestFactory: .with causes NPE on server if returned value is null

2013-04-16 Thread Gordan Krešić
Done: https://code.google.com/p/google-web-toolkit/issues/detail?id=8104 On Wednesday, April 10, 2013 10:23:43 AM UTC+2, Thomas Broyer wrote: > > Please open an issue. I don't have time to do it right now but > (tentatively) reproducing the issue is really easy in the current RF test > suite >

Re: RequestFactory polymorphic arguments issue, is it possible?

2013-04-15 Thread GWTter
, Thomas Broyer wrote: > > Not sure what you're trying to do but it's not a supported usecase. > RequestFactory only supports proxies created by its RequestContexts. > > On Friday, April 12, 2013 5:32:15 PM UTC+2, GWTter wrote: >> >> Hi all, >> >

Re: RequestFactory polymorphic arguments issue, is it possible?

2013-04-13 Thread Thomas Broyer
Not sure what you're trying to do but it's not a supported usecase. RequestFactory only supports proxies created by its RequestContexts. On Friday, April 12, 2013 5:32:15 PM UTC+2, GWTter wrote: > > Hi all, > > I'm having an issue using an implementation of an extended

RequestFactory polymorphic arguments issue, is it possible?

2013-04-12 Thread GWTter
Hi all, I'm having an issue using an implementation of an extended EntityProxy. I have the setup below, now when I call setBarProxyExt(BarProxyExt barProxyExt) I get no errors and I am sure that the setBar method is receiving the correct bar however the field is not set. This however is not t

Re: RequestFactory: .with causes NPE on server if returned value is null

2013-04-10 Thread Thomas Broyer
Please open an issue. I don't have time to do it right now but (tentatively) reproducing the issue is really easy in the current RF test suite (com.google.web.bindery.requestfactory.gwt.client.RequestFactoryTest#testNullEntityProxyResult), so no need to attach a repro case (just link to this t

RequestFactory: .with causes NPE on server if returned value is null

2013-04-09 Thread Gordan Krešić
In pretty basic RF scenario, I'm fetching one EntityProxy from server: myRequestContext.search(url).with("path1", "path2").to(...).fire() MyRequestContext.java: @Service(ModelService.class) public interface MyRequestContext extends RequestContext { Request search(String url); } ModelService.s

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2013-04-07 Thread Aman Sharma
How to do the all of these steps if no IDE's including Eclipse. On Saturday, September 24, 2011 2:33:49 AM UTC+5:30, Jonas wrote: > > Hi, > > this Wiki entry helped me to solve the problem: > http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation > Do exactly what is

Re: RequestFactory Could not parse payload: payload[0] = N

2013-03-26 Thread Thomas Broyer
That's interesting. Would you mind filing a bug? We should handle that better (fail at serialization rather than deserialization, with a better error message; or find a way to send the NaN: NaN cannot be represented in JSON) -- You received this message because you are subscribed to the Google

Re: RequestFactory Could not parse payload: payload[0] = N

2013-03-26 Thread Jan Cuzy
I ran into the same problem. With a bit of debugging I found out that I was trying to send NaN in one of my Float attributes to the GWT Client. Dňa streda, 6. februára 2013 23:07:19 UTC+1 Sydney napísal(-a): > > If you have a test case to reproduce that issue, you can provide it to > that issue

Re: RequestFactory issue with overloaded setters in domain type

2013-02-28 Thread James Horsley
FYI writing my own ServiceLayerDecorator with the following worked like a charm so extra thanks for the suggestion private static Method getBeanMethod( BeanMethod methodType, Class domainType, String property, Class propertyType ) { for ( Method m : domainType.getMethods() ) {

Re: RequestFactory issue with overloaded setters in domain type

2013-02-28 Thread James Horsley
Makes sense. Thanks! On 28 February 2013 13:27, Thomas Broyer wrote: > > > On Thursday, February 28, 2013 1:50:03 PM UTC+1, James Horsley wrote: >> >> I'll take a stab at writing a ServiceLayerDecorator as that should get me >> unblocked without writing DTO's and if the correct setter is called

Re: RequestFactory issue with overloaded setters in domain type

2013-02-28 Thread Thomas Broyer
On Thursday, February 28, 2013 1:50:03 PM UTC+1, James Horsley wrote: > > I'll take a stab at writing a ServiceLayerDecorator as that should get me > unblocked without writing DTO's and if the correct setter is called the > NPE's won't be an issue. Thanks to you both for the suggestions! > > Th

Re: RequestFactory issue with overloaded setters in domain type

2013-02-28 Thread James Horsley
I'll take a stab at writing a ServiceLayerDecorator as that should get me unblocked without writing DTO's and if the correct setter is called the NPE's won't be an issue. Thanks to you both for the suggestions! Thomas, is this issue likely to end up as PatchesWelcome or WontFix? If the former then

Re: RequestFactory issue with overloaded setters in domain type

2013-02-28 Thread Thomas Broyer
On Thursday, February 28, 2013 11:18:22 AM UTC+1, Ignacio Baca Moreno-Torres wrote: > > If you don't want to have a delegator DTO, you may try AOP. For example, > with guice you can match the classes you have the NPE problem, and return > null before de NPE. > or in this specific case, use a

Re: RequestFactory issue with overloaded setters in domain type

2013-02-28 Thread Ignacio Baca Moreno-Torres
sues/detail?id=8039 > > > On 27 February 2013 17:04, James Horsley wrote: > Thanks for the quick and detailed reply. > > Given a big win using RequestFactory is having it work well with existing > server side data models it'd seem like something we'd want to fix,

Re: RequestFactory issue with overloaded setters in domain type

2013-02-27 Thread James Horsley
Issue filed https://code.google.com/p/google-web-toolkit/issues/detail?id=8039 On 27 February 2013 17:04, James Horsley wrote: > Thanks for the quick and detailed reply. > > Given a big win using RequestFactory is having it work well with existing > server side data models it

Re: RequestFactory issue with overloaded setters in domain type

2013-02-27 Thread James Horsley
Thanks for the quick and detailed reply. Given a big win using RequestFactory is having it work well with existing server side data models it'd seem like something we'd want to fix, relative to other priorities of course. In this specifc case I don't own the domain class as it

Re: RequestFactory issue with overloaded setters in domain type

2013-02-27 Thread Thomas Broyer
On Wednesday, February 27, 2013 4:05:30 PM UTC+1, James Horsley wrote: > > I'm running into an issue where RequestFactory isn't calling the correct > setter on the domain object in DevMode and I've not tried it compiled yet. > Looking

RequestFactory issue with overloaded setters in domain type

2013-02-27 Thread James Horsley
I'm running into an issue where RequestFactory isn't calling the correct setter on the domain object in DevMode and I've not tried it compiled yet. Looking at the code it appears that ReflectiveServiceLayer.getBeanMethod is just picking the first setter it finds based on SET/SET_BU

Re: RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Pheww, Caught the culprit... The Locators. --- @Override *public* MyDto find(Class clazz,*final* Integer id) { *return *new MyDAO.findById(id);//Earilier -> return create(clazz

Re: RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Hi, It's seems if I use the same RequestContext reference to create Proxy it doesn't give a problem... But what if I am getting a proxy from somewher else already populated with values ... is there a way to use that proxy or I just have to do all the setters and getters to create new proxy

RequestFactory Sending EntityProxy with Associated Entites Fields as null

2013-02-17 Thread Aryan
Hi all, At first is it a necessity to use 'InstanceRequest<>' for persisting Entites? Anyway what I am doing is _ client creating a proxy -> calling edit() [request.edit(proxy)] -> set the data to proxy e.g. proxy.setName("name') ... ...//Also some where setting th

Re: RequestFactory Eagerly Fetches the collections in my entity meant to loaded Lazy

2013-02-17 Thread Aryan
yProxy. > > On Friday, February 15, 2013 11:07:10 PM UTC+1, Aryan wrote: >> >> Hi all, >> RequestFactory seems to fetch whatever the collection I have in my >> ValueProxy eagarly. >> >> Lets see the code >> >> @Entity >> public class V

Re: RequestFactory Eagerly Fetches the collections in my entity meant to loaded Lazy

2013-02-15 Thread Thomas Broyer
Because a ValueProxy has no "identity" (and therefore cannot be retrieved again later), .with() doesn't apply to it; it only applies to EntityProxy. On Friday, February 15, 2013 11:07:10 PM UTC+1, Aryan wrote: > > Hi all, > RequestFactory seems to fetch whatever the

RequestFactory Eagerly Fetches the collections in my entity meant to loaded Lazy

2013-02-15 Thread Aryan
Hi all, RequestFactory seems to fetch whatever the collection I have in my ValueProxy eagarly. Lets see the code @Entity public class Venue implements Serializable { private name; private Address address; private Set contacts; @OneToMany(fetch

Re: RequestFactory + ejb3

2013-02-11 Thread nabil . benasker
hi have find a sollution for this problem"requestfactory+ejb" Le vendredi 2 septembre 2011 19:02:15 UTC+2, thiago borges martins a écrit : > > Good afternoon staff, > > I am developing a system and adopted the gwt + smart for the > presentation layer and the back

Re: Using RequestFactory with JPA (3 Entities)

2013-02-11 Thread Nermin
Dear Thomas, thank you for the answer to my question. I head a JPA problem with an entity being used two times. However, I could not figure this out from the error message. I figured this out by creating the entities without using the RequestFactory. How ever it works fine now. Best regards

Re: Using RequestFactory with JPA (3 Entities)

2013-02-09 Thread Thomas Broyer
Try to re-generate the DeobfuscatorBuilder for your RequestFactory (maybe run the ValidationTool manually). This error would generally happen if the generated DeobfuscatorBuilder doesn't know about a particular proxy. On Friday, February 8, 2013 6:11:27 PM UTC+1, Nermin wrote: >

Re: RequestFactory ServiceLocator use Guice

2013-02-08 Thread Thomas Broyer
See https://github.com/tbroyer/gwt-maven-archetypes/tree/master/guice-rf-activities/src/main/resources/archetype-resources/__rootArtifactId__-server/src/main/java The RequestFactoryServlet is instantiated by Guice (configured in the ServletContextListener); the ServiceLayerDecorators are instanti

Using RequestFactory with JPA (3 Entities)

2013-02-08 Thread Nermin
Dear Community, I have a problem with my application which uses JPA on Datanucleus and RequestFactory, It has 3 JPA Entiries: (User) -> (Address) -> (City) @Entity @Table(name = "T_USER_1") public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY)

RequestFactory ServiceLocator use Guice

2013-02-08 Thread Yan
Hi there, I wish to use Guice to inject objects in ServiceLocator class. I am having trouble getting it done, end up with injector.injectMembers(), which I should avoid. Any suggestion how I use Guice in the code below so that my object can be injected into either MyServiceLocator or MyServi

RequestFactory and Entities With Multiple Child Inheritance

2013-02-08 Thread Namik Karovic
Hi, I am having problems with using RequestFactory with Datanucleus to persist data into children of entity children. The situation is this: I've got a parent entity, a child entity, and a child's child entity. I have managed to use RequestFactory to persist data into both the pare

Re: RequestFactory, EntityProxyChange - UPDATE event at read

2013-02-08 Thread JahSon
I just recently began working with RequestFactory and I have also come across this issue. Can anyone more experienced with this solution shed some light on the behavior of EntityProxyChange events? I am simply performing a read from the database. I would expect EntityProxyChange events

Re: RequestFactory Could not parse payload: payload[0] = N

2013-02-06 Thread Sydney
If you have a test case to reproduce that issue, you can provide it to that issue on google app engine: https://code.google.com/p/googleappengine/issues/detail?id=8471 On Friday, January 18, 2013 9:23:52 PM UTC+1, El Mentecato Mayor wrote: > > I should have thought of that, sorry. Unfortunately

<    1   2   3   4   5   6   7   8   9   10   >