Announcement Announcement Module
Collapse
No announcement yet.
Problem with for multiple select Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with for multiple select

    Code:
    @Entity
    @Table(name="Employee")
    public class Caste implements Serializable
    {
    	
    	private static final long serialVersionUID = 1L;
    
    	@Id
    	@Column(name = "dept_id")
    	private Integer deptId;
    
    	@Column(name = "emp_ids")
    	private String empIds;
    }
    in jsp
    Code:
    <form:select multiple="true" path="empIds">
        <form:options items="${empisOptionList}" itemValue="empId" itemLabel="empName"/>
    <form:select>

    in the above code empIds are stored as comma separated ids selected by multiple select . but when i select one value
    it show one value selected after saving the domain object but when more than 1 value i.e. comma separated values are save it doesn't show these value selected. and when i again update the table it save null.

    Please help.

    let me know how i can show more than one value selected in the multiple select when my path variable contains comma separated values e.g.2,3,4.

    Thank you in advance!!!

  • #2
    Could you please reply on this thread!!! i am stuck here from last so many days....

    Comment

    Working...
    X