aspose file tools
The moose likes JSF and the fly likes trinidad selectManyListBox Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "trinidad selectManyListBox Issue" Watch "trinidad selectManyListBox Issue" New topic
Author

trinidad selectManyListBox Issue

Surendra Meka
Greenhorn

Joined: Jan 06, 2011
Posts: 2
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

Joined: Feb 15, 2007
Posts: 557
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.


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
Surendra Meka
Greenhorn

Joined: Jan 06, 2011
Posts: 2
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.
 
I agree. Here's the link: jrebel
 
subject: trinidad selectManyListBox Issue
 
Similar Threads
selectManyListbox Issue
Selecting some entries in selectManyListbox
SelectManyListBox is acting really weird
Problem with selectManyListbox
selectManyListbox