I have a selectManyListBox which have values "One","two","three".
tried to show the "two" as select in the List from backing bean as [selectManyListBox.setValue("two");]..it is working fine.
tried to set the value of "four" [selectManyListBox.setValue("four")] to List which was not there..okay ..it is not showing as select in the List as its work fine.
then i tried to get the selected values like [selectManyListBox.getValue();] then it is giving "four" as that is not there in the List.
But here it should'nt give the "four" as it is not there in the List & it is not selected.
Can anyone share some suggestions to overcome this.
waiting for the reply...
Joined: Feb 15, 2007
This case described normally wont arise because user can not select something which is not there in list.
If you still consider setValue(String str) should not have set something not offered in list then override the set
Value(...) to filter unwanted values.
Thanks & Regards,<br />T.Srinivasan,<br />SCWCD 1.4(89%),SCJP 5.0(75%)<br />"That service is the noblest which is rendered for its own sake." - Mahatma Gandhi
Joined: Jan 06, 2011
thanks for the reply..
But in my case the List values will vary dynamically...so i cannot now the the values present in list.
at this scenario i'm getting this issue.