Spring web flow form binding append to list -


i'm learning use spring, spring webflow , thymeleaf. created little old school wizard application user have fill out forms click next button , @ end configuration process. every view-state's model called configuration model class. class contains list<note> notes. on every view-state user has option add notes. issue form binding @ every view-states note list replaced instead of appended new note.

how can append list instead of replace @ every view-state?

any appreciated.

in short: standard java collections arraylist initialized fixed size , cannot appended new entries/pojos.

so if want bind/append new entries collection need use the

import org.springframework.util.autopopulatinglist; 

instead of standard

java.collections.list 

see answer wrote on similar question more details:

spring webflow submit array new items


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -