(I posted this on stackoverflow and got a handful of views but no response)

I have a newly coded GWT/GAE app that uses RequestFactory and Editors on the
client and a custom Objectify DAO Service on the back.

The flush() then persist() paths work fine on success. Client side JSR 303
works as well as can be expected too.

My question is how to trigger server warnings/errors and handle UI updates?

I am using Chandler's Generic DAO for Objectify 2 at
http://turbomanage.wordpress.com/2010/02/09/generic-dao-for-objectify-2/

my gwt activity is calling persist( myProxy ).fire( new Receiver<> )

my dao code is throwing IllegalArgumentException and other RuntimeExceptions
for business logic situations like "Duplicate email address found - want to
login instead?"

Receiver<>.onSuccess() works fine to track a successful outcome. neither
Receiver<>.onFailure() nor Receiver<>.onViolation() report the
RuntimeExceptions.

Is there a better way to do this? What exceptions should the DAO throw such
that onViolation() or onFailure() report errors? How should the editor(s)
handle and recover from the exception?

-- 
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M.
Andretti

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