On Thursday, April 14, 2011 12:38:26 PM UTC+2, Owen Ilagan wrote:
>
> Hi! 
>
> I've managed to get Request Factory to work somewhat, but I'm stuck at 
> a point where I attempt to execute this code in my client Activity 
> class: 
>
> AppRequestFactory factory = clientfactory.getAppRequestFactory(); 
> EmployeeProxy employeeProxy = 
> factory.employeeRequest().create(EmployeeProxy.class); 
> employeeProxy.setDepartment("New Department"); 
> employeeProxy.setUserName("Owen"); 
> employeeProxy.setPassword("password"); 
> factory.employeeRequest().getStatus(employeeProxy).fire(new 
>

You have to use the same RequestContext instance for your create() and 
method+fire().
The workflow is:

   1. create a RequestContext using a factory method of your RequestFactory 
   (in you case employeeRequest())
   2. push things to it (create(), edit(), method calls, etc.)
   3. fire() it to send the whole thing to the server for processing

The fire(Receiver) method of a Request is just a shortcut for 
Request#to(Receiver) and RequestContext#fire().

-- 
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.

Reply via email to