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

How to force a value in a component from the backing bean

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I have three SelectOneMenu components, A B and C. At first only A is rendered, after option choice B comes up, and after B's choice, C comes up.

I have a value change listener in my A component, which if the value of A is changed, it should trigger the C component to hide, and set it's value to an empty string. When I change the value of A everything goes well on the first set, but then the second set, when the page is refreshing, the backing bean receives the value that was in the component (so the backing bean had the correct value but not the front end, which causes on the second set, the value to be wrong on the bean). How do I force a value into the component on the ValueChangeListener, when the Value ChangeListener on the A component is triggered?

Best regards
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic