开发者

GWT FormPanel binding to a Java Class

开发者 https://www.devze.com 2023-03-18 08:41 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消