jsf.js. This file is available in the
javax.faces library. When we are using
<f:ajax>, this file is loaded behind the scene without any explicit requirements.
jsf.js can be loaded explicitly with any of the following methods:
<h:outputScript>component as follows:
<h:outputScript name="jsf.js" library="javax.faces" target="head"/>
@ResourceDependencykeyword as follows:
@ResourceDependency(name="jsf.js" library="javax.faces" target="head")
<h:outputScript>, you can attach AJAX to a component as shown in the following example code:
<h:form prependId="false"> <h:outputScript name="jsf.js" library ="javax.faces" ...