PDA

View Full Version : MultiSelect List Box



SwetaMishra
13 Jan 2011, 2:20 AM
items: [{
xtype:'multiselect',
fieldLabel:'<font color=#15428B><b>Select Role</b></font><font color=red>*</font>',
width:200,
height:100,
id:'multiselect',
name: 'multiselect',
store:RoleInfo,
displayField : 'Role',
valueField : 'cid',
tbar:[{
Text : 'Please Select',
handler: function(){
formRoleAssigned .getForm().findField('multiselect').reset();
}
}],
ddReorder: true,
allowBlank : false
}]

I am using a multiselect list box but i am not able to get the value of selcted items of the list box when i am writing
request = ServletActionContext.getRequest();
session = HibernateUtil.getSessionFactory().openSession();
String role = request.getParameter("multiselect");
System.out.println("The roles assign to the user are ------>"+role);
the following code in backend ....can u please help me out ....