Sunday, 15 May 2011

vaadin - How to bind list of TextField to binder(FieldGroup or BeanFieldGroup)? -



vaadin - How to bind list of TextField to binder(FieldGroup or BeanFieldGroup)? -

i have requirement following.

in page employee record entree there 3 types of field name, phone numbers , address. user can come in 1 name , 1 address per employee can add together multiple phone numbers using multiple text field.

initially there 1 text field phone number user can add together more text field using button. text fields phone numbers can increment , decrease.

for requirement easy bind name , address, since there 1 entry. phone numbers have utilize list , unable bind list of text fields list of strings.

you have write customfield<list<string>> this. implement abstract methods , override (get|set)internalvalue read , spread values list of textfields (e.g. on set remove textfields, add together 1 each item in list , add together additional 1 new ones , add-button). can utilize field bind list.

vaadin vaadin7

No comments:

Post a Comment