QFaces1.1 has added a new component that fixes an error with the validator in the previous release, along with a demo project.
New components I call it super linkage: linkage
Why is it called super linkage?
1. can be infinite linkage.
2. You can not refresh the page.
3. Almost no performance impact.
4. You do not have to change the existing JSF components.
5. And also very simple to use:)
<q:linkage for= "Country,province,city,area,street" listener= "# {Linkagebean.listener}"/>
For: Specifies the ID of the other SelectOne component on the page, no limit to the number
Listener: Background method bindings, returning the appropriate list of options can be
In practical applications, we often encounter the need to cascade the selection of functions, such as: national, provincial, municipal and other cascade selection, these are not easy to achieve,
and to achieve better compatibility is not an easy thing, if the user to add a lot of JavaScript is also very troublesome things.
So I try to use the non-invasive way to make it easier and more free, and let the user use it in the simplest way, which is my goal.
Without changing your code and logic, you can use this component to turn all the SelectOne components in your page into cascading relationships!!
If you're feeling amazing, then learn the JSF framework, which is actually the essence of JSF, and it's definitely the place where you have unlimited imagination!
For downloads, installation, and use, links are attached to the back.
Take a look at this component's effect chart first:
Figure 1 Figure 2