QFaces1.1--... Super linkage! JSF and Ajax can be a perfect combination

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.