I am developing a web application using Oracle ADF. In that I have a page like as follows

In the above image I have two select lists. First one is country and second one is state. Actually my requirement is when the user select any value from country list I have to add all appropriate states to the states list programatically.
Suppose user has selected India then I need all states in India that are Ap, Ka, Mh, Tn like that.
I have tried this This Post. But it is fixed and I need to add values dynamically.
Please help me in achieving this. Thanks in advance.