• Post Reply Bookmark Topic Watch Topic
  • New Topic

trinidad selectManyListBox Issue

 
Surendra Meka
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need some clarification in slectManyListBox.

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...

Thanks,
Surendra.
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surendra,

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.

 
Surendra Meka
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

with regards,
Surendra.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!