View Full Version : Bind TextField<String> to BaseModel

11 Aug 2009, 11:10 AM
Hi all,

i have a BaseModel with some key-value pairs in the RcpMap (e.g. "firstName", "lastName", ...). Now i want to bind the keys from the BaseModel to the depending TextField<String> on my form ("firstName" to TextField<String> for the First-Name, and so on).

So if the user does an input the the TextField, the data for the key is also updated. E.g. the user does an input to First-Name, there is an "automatic" set("firstName") to my BaseModel.

Is this possible?
And if yes, can someone give me a working solution, maybe with a code-snippet?


11 Aug 2009, 11:12 AM
That is already included in GXT.

Take a look at this example : http://www.extjs.com/examples/explorer.html#basicbinding

11 Aug 2009, 11:59 AM
That's great!

It's working ... sorry for my stupid question. I'm still learning to use GXT, and there are a lot of things in GXT i overlooked, because of these tons of features :">

Thank you

11 Aug 2009, 12:35 PM

i use the ComboBox and NOT the SimpleComboBox ... because of having a different key to the shown value.

So therefore i can't use the "SimpleComboBoxFieldBinding" :(. Any idea?

What about the CheckBoxes, RadioButtons, ... can i use the "FieldBinding" for these UI-Elements?


11 Aug 2009, 9:19 PM
i give the answere myself ... if someone is interested in the soloution

found a working solution there http://extjs.net/forum/showthread.php?t=56855