Wednesday, January 26, 2011

Re: Must getters and setters in an EntityProxy be a matched set?

I guess a better wording for my question is, are either of the following flows allowed?   The goal is to create an object on the server side without persisting it, display its default values and edit them on the client side, and then persist it back to the server side.

1)
  Create Request Context RC1
  Call RC1.createAndInit()  // Returns proxy1
  Create Request Context RC2
  Call Editor.edit(proxy1, RC2)
  Call RC2.persist(proxy1)                   <------------- Tries to call non-existant setters 

2)
  Create Request Context RC1
   Call RC1.createAndInit()  // returns proxy1
   Call Editor.edit(proxy1, RC1)                 <-----------Throws java.lang.IllegalStateException: A request is already in progress
   Call RC1.persist(proxy1)


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