Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

trinidad selectManyListBox Issue

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
ScroogeXHTML - fast RTF to HTML and XHTML conversion
https://coderanch.com/t/749563/ScroogeXHTML-fast-RTF-HTML-XHTML
reply
    Bookmark Topic Watch Topic
  • New Topic