I have a search form which uses standard HTML <form>
tag and sends a GET request like so search.jsf?country=x&city=y
. They are set as view parameters in a view scoped bean.
The search form contains two cascading dropdowns, one for countries and one for cities. How can I update the cities dropdown by <f:ajax>
without changing <form>
to <h:form>
and thus breaking the GET functionality? Do I have to use "plain vanilla" ajax by XMLHttpRequest
? How could I use it on a JSF backing bean?