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:
Comments
Post a Comment