how to bind data to list in spring form

后端 未结 4 1304
南笙
南笙 2021-02-06 05:02

I have a spring form with having backing object for it. The form is like this-



        
4条回答
  •  耶瑟儿~
    2021-02-06 05:22

    
       
    
    

    Will the above not works for you to view data? To get them in controller you may have to use dynamic table row concept in HTML or for each single LandingPage entry add to form bean object by clicking add button and render back.

    In my case Person command object having List property, in order to bind the list of tokens we have designed page as attached screen shot below, clicking on Add button hits the controller and add the each token List and render back to same view and displays added token in list view, it facilitates to add multiple token for Person.

提交回复
热议问题