I'm always confused about GWTP and Editor framework. In general I use the recommendation from this blog:
http://floonit.blogspot.com/2012/07/gwtp-and-editors.html
I'm confused what will be used as editor in this case:
Form 1 edits an Entity X and includes Form 2 (PresenterWidget) which edits X.Address. To edit X.Address, Form2 uses some other PresenterWidget (w1) which edits locations using TexBox.
When w1's textbox is empty, I want to show ConstraintViolation error using a label in form2 (since w1 doesn't know anything about editors). I don't know which editor hierarchy to follow so that driver.setConstraintViolations(...) automatically sets errorLabel for field 'Address' in form2.
Suggestions?
Thanks.