What RF will do with the above request is:
- create a ProductMargin
- load the Product by its ID
- call productMargin.setProduct(product)
- validate productMargin
- validate product
- etc. (create service instance, call persist method, etc.)
It fails at step 5 above, because product's group field (field, not property, it makes a big deal of a difference if you have lazy loading!) is null, whereas it has a @NotNull annotation.
Code this somewhere (in a unit test, a servlet, whatever) and run it. If it runs then you can blame RequestFactory; otherwise it'll help you debug your code.
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