Hi All
I have Form In which User is entering his address details
Country State City Area PIN
this all fields are drop down list ( h:selectOneMenu )
When i select county it populates State and on selection of State It populates City so on
I am using a4j:support to call function.
My problem is user should be able to select State or city or pin by using keybord or by mouse
ie two event ( onkeyup and select ) shoud work
How to do it ???
To be more precise, set up an a4j for onchange, create a changeListener for the selectOneMenuItem and prep the SelectItem list in the changeListener method.
I normally just null the cached SelectItem list in the changeListener and populate it in the get SelectItemList method when the cached copy of the list is found to be null.