In an existing application (JSF) I would like to replace a widget with a one implemented in GWT. I also want to reuse existing logic implemented in managed beans. Logic on the server needs more then just data from the widget to work (so it needs everything what is being submitted by the user's action) - I cannot just use GWT-RPC or similar mechanism (because I won't get JSF data).
The question is: how to pass data from GWT to the server so that I can access (on the server) java objects after they were edited by the GWT widget in the same place where submitted JSF action is handled?
EDIT:
Imagine that there is huge form generated by JSF, and a small, fancy map with position picker written in GWT. When the user clicks 'submit' I want to generate some data (on the server) based both on the form and the map - I need form content and position from the map at the same time in the same method. And the question is - how to achieve that? (it is just an example, the GWT widget is much more complex then a simple position picker)