PDA

View Full Version : GWT-RPC FormBinding



Reghin
9 Jul 2009, 10:12 AM
Hello again guys! =)

I'm trying to understand how FormBinding works, but no luck so far. The example in the Explorer application are a little confusing for me.

What I'm trying to do is to load a form with a bean coming from GWT-RPC.

The form and the fields are all placed, but NOT bound to any bean.

I have a button which calls a service which returns a bean. I could manually update all fields with the returning bean, but I think it's quite a stupid thing to do. That's where I think FormBinding comes. But how??? :((

Please, any help would be highly appreciated! :D

stan229
9 Jul 2009, 11:06 AM
When you get the bean did you call formBindingObject.bind(bean) ?

Reghin
10 Jul 2009, 3:04 AM
Should I?? Where is it told???

stan229
10 Jul 2009, 5:57 AM
http://extjs.com/examples-dev/explorer.html#basicbinding

void bind (file:///D:/JARS/gxt-2.0-m3/docs/api/com/extjs/gxt/ui/client/binding/FormBinding.html#bind%28com.extjs.gxt.ui.client.data.ModelData%29)(ModelData (file:///D:/JARS/gxt-2.0-m3/docs/api/com/extjs/gxt/ui/client/data/ModelData.html) model)
Binds the model instance.