Re: RequestFactory - Send error to client

2010-11-19 Thread atoy40
Hello, i have the same problem and the same interrogation (intentional or not ?) If you look on the RF doc, all code examples use RequestT to fire(), but all the real samples (DynaTableRF, Expenses) I've studied use RequestContext to fire() instance request. And is there any other differences

Re: RequestFactory - Send error to client

2010-11-16 Thread DK
I've encountered the same problem. Intuition says that throwing an error should trigger the onFailure() method, not the onSuccess() method with a SEVERE logging the exception. Is this a known bug? On Nov 6, 5:03 am, Henrique F M fm.henri...@gmail.com wrote: Hi there, I didn't find the solution

Re: RequestFactory - Send error to client

2010-11-16 Thread Dain Kaplan
I dug around a bit and discovered why the onFailure() handler was not being called. The DynaTableRf sample that ships with GWT 2.1 uses the new Editor framework. In the PersonEditorWorkflow.java class it initializes the editor and keeps a copy of the RequestContext as follows: PersonRequest

RequestFactory - Send error to client

2010-11-06 Thread Henrique F M
Hi there, I didn't find the solution to this anywhere, so I'm creating this new discussion. I want to be able to send errors from my RequestFactory to the client. Let me give an example: let's say my app is a simple Person CRUD. My Person class has a String name attribute and I don't want to