8.4. Making calls to the server
Once you have all of the components in place (which can be a bit of a project), making calls to the server is fairly simple. But before we begin, because this section is somewhat long, we want to explain how the section has been laid out. In the first subsection we initialize the factory and make a simple call to the server to get the count of persisted objects. This is followed by an examination of calling instance methods (as opposed to static methods), followed by persisting, fetching, and finally editing objects. We then round out the discussion by explaining how you can use JSR-303, Bean Validation, to provide client-side validation.
Note
For the client-side code you’ll need to add the following
Get GWT in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.