Skip to Main Content

How to refresh/update the data of component when other component changes?

Ajesh MApr 1 2015 — edited Feb 18 2018

Hi,

I want to refresh or filter the components data, on change of other components data.

Say: 1. a component "A" SelectOneChoice contains the list of Country

2. a component "B" which is also SelectOneChoice contains the list of Sates with countryIds.

ValueChangeOn "A" i want to filter the state on selected country and update the list of State showing only selected country.

I'm trying, i've added a valueChangeListener on component but don't know  how to get the values of CountryListIterator & StateListIterartor to filter with the IDs on that specific ManagedBean.

And refresh/update the data of Filter StateList on StateListIterartor.

Regards,

Ajesh

Comments
Post Details
Added on Apr 1 2015
5 comments
1,336 views