• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem updating a dynamically populated selectOneChoice elements

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

i use jsf and apache myfaces trinidad library. i want to have a form with 2 tr:selectOneChoice elements where the first one will have some initial fields in it. the second one will become populated depending on what is chosen in the first one.

the jsf looks like this:



in my licenseAction bean i have the method customerSelected which updated the values of stores field dynamically depending on the value that was selected in the customers field.

if i select a value (customer) in the first menu, then the second menu gets populated with the correct values. but as i select a value from the second one, i get this very strange error:

sorry for the german. quick translation: index 0 of submittedValue of selectOne is out of valid range. should be between 0 and -1.



it looks to me that come internal value range is not updated once the menu has been populated with new valued.
does anyone know this bevhaviour and what i have to do to get rid of it?

Thanks,
Marc
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Set the valuePassThru="true" for both the components and try....
 
reply
    Bookmark Topic Watch Topic
  • New Topic