How do I bind a GWT FormPanel to a java object automatically similar to Spring's binding feature?
What I want to accomplish here is have a GWT FormPanel 开发者_开发问答containing input elements. And on form submit bind it to a java class for easy access to the values.
[http://programmers.stackexchange.com/questions/91316/gwt-formpanel-binding-to-a-java-class]
If by "binding" you mean "on the client-side", then try using the Editor Framework. You can call its flush() from within the FormPanel's onSubmit (you'd have to call edit() when showing the form initially), or simply not use a FormPanel at all and use a button's onClick.
精彩评论