Re: RequestFactory create proxy object serverside

2011-07-26 Thread Jakob Mar
Thanks for your reply Ryan. In my case Foo is just a top of a complicated object graph and yes I want to set the default values, I also want to be able to do calculation on Foo with out persisting it. I guess I could implement it on the client side but that is a lot of work and I am not sure it

Re: RequestFactory create proxy object serverside

2011-07-25 Thread Ryan McFall
I don't think this will work, nor do I think it should. As far as I understand it, when you send a proxy reference via a Request, the RF framework attempts to find the server-side entity the proxy is referencing (using the ID), and then calls the associated method in your service implementation pa

RequestFactory create proxy object serverside

2011-07-25 Thread Jakob Mar
Using RequestFacory I am trying to create an object on the server like this: public imterface FooRequestContext extends RequestContext { Request createByBarId(String barId);//create new Foo object (dose not persist it) Request calculate(FooProxy foo); } createByBarId works fine but when