JSF selectManyListBox problem in getting the selected values

Hi ,

Ive two listboxes ,Ive written javascript to load the listbox 2 from the listbox1.but my problem is Iam not able to get the selected items of the second listbox in my actionclass since it does not have option value.

due to <option value="">

iam getting conversion error..How to get the selected items ?

for my firstlist bx ,i can get the selected items because iam loading

getServletContext().setAttribute("errorList",mc_troubletrend.getList());

In my action ,Iam getting by

UISelectMany errorcode = (UISelectMany)

form.findComponent("errorselection1");

Object[] error_code = errorcode.getSelectedValues();

since iam using javscript to load the second list box ,its option value is not setting ....

please help me

Regards

Sangeetha

Message was edited by:

a_sangu

[872 byte] By [a_sangua] at [2007-11-27 11:45:32]
# 1

Use JSF and backing beans instead of Javascript and servletContext.

BalusCa at 2007-7-29 18:02:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...