The power of the PrimeFaces selectors
PrimeFaces integrates jQuery Selector API (http://api.jquery.com/category/selectors) with the JSF component referencing model. Partial processing and updating of the JSF components can be done by using the jQuery Selector API instead of a regular server-side approach with findComponent()
. This feature is called PFS (PrimeFaces Selector API) . PFS provides an alternative, flexible approach to reference components to be processed or updated partially. In comparison to regular referencing, there is less CPU server load because the JSF component tree is not traversed on the server side in order to find client IDs. PFS is implemented on the client side by looking at the DOM tree. Another advantage is avoiding naming container limitations and thus the cannot
find
component
exception, since the component we were looking for was in a different naming container.
The essential advantage of this feature, however, is speed. If we reference a component by an...