Announcement Announcement Module
No announcement yet.
Binding Form Bean to Multiple Form Input fields Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Binding Form Bean to Multiple Form Input fields

    I have a Form bean being used as the commandClass of my context. Below is a sample

    HTML Code:
    	<bean id="main" 
    		class=""  lazy-init="default" 
    		autowire="default" dependency-check="default">
    		<property name="commandName" value="results"/>
    		<property name="commandClass" value="" />
    The requirement for my page is to have it render multiple identical (identical in the sense that it will hold information for first names from a list) form fields. The problem is if I have a collection that would represent those fields on the JSP, how would I be able to render it continuously on to the succeeding form fields?

    This is with the assumption that I am using the following code to render form inputs.

    HTML Code:
    <form:input path="firstName" />