Search code examples
formsgwtbindinggxt

Dynamic form with binding in GXT


What would be the best approach to implement a form with a variable number of text fields? I'm thinking something like this:

textField1 (removeButton)
textField2 (removeButton)
textField3 (removeButton)

addNewTextFieldButton

I would like this to bind to a list of strings.


Solution

  • I achieved this with an editable grid with a single column and buttons to add/delete rows.

    This component is very well integrated with GWT Editor framework so you can bind your grid to a list of objects using a ListStoreEditor