Hi,
I've been struggling with this problem for 2 days now, hope that one of you already faced it and could help me.
Lets say I've EntityProxy A contains two ValueProxies A.x and A.y.
For this EntityProxy A I've got an Editor consists of 2 subeditors for the ValueProxies (Editing operation works just fine).
Lately I've got a request in which during the editing operation I need to listen to (ValueProxy) A.x sub editor's fields change events and once one of A.x fields is changed I need to send A.x to the server.
Basically the reason for doing so is to suggest data based on what the user insert, and do it before user saves A (before flushing the Editor).
Been trying the following ways to achieve that.
1. Create method in A's service that get A and return the suggested message.
2. On change events send A to the server - throws - Attempting to edit an EntityProxy previously edited by another RequestContext
3. Used the same RequestContext as in the Editor to send A to the server - ServerFailure - The call failed on the server due to a ConstraintViolation
4. Changed the method on A's service to get (ValueProxy) a.x and return the suggested messgage - ServerFailure - The call failed on the server due to a ConstraintViolation
5. Used new RequestContext to send A.x to the server - does not throw any error but all fields on A.x on the service are null.
Any advice will be welcome.
Thanks a lot in advanced.
Ido
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment