Results 1 to 2 of 2

Thread: Problem with for multiple select

  1. #1
    Join Date
    Jun 2012
    Posts
    4

    Question 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. #2
    Join Date
    Jun 2012
    Posts
    4

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •