jsp - Tag Library supports namespace: http://java.sun.com/jsf/core, but no tag was defined for name: ajax -


below page

<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> <h:form>     <h:outputlabel id="outtxt" value="#{user.name}"/>     <h:inputtext id="intxt" value="#{user.name}">         <f:ajax event="keyup" execute="intxt" render="outtxt"/>     </h:inputttext> </h:form> 

throws below error

tag library supports namespace: http://java.sun.com/jsf/core, no tag defined name: ajax

how caused , how can solve it?

the <f:ajax> available in facelets tag library of jsf.

however, you're using jsp deprecated since jsf 2.0. jsf 2.x development jsp has stopped. new jsf 2.x specific tags/attributes such <f:ajax>, <h:head>, <h:link>, <h:button>, <h:inputfile>, <f:viewparam>, <f:viewaction>, etc not available in jsp tag library of jsf. need migrate jsp successor facelets in order utilize new jsf 2.x specific tags/attributes. see below links more detail facelets:

if you've found jsp example in jsf book/tutorial/resource, it's jsf 1.x targeted one. when learning jsf 2.x, make absolutely sure read jsf 2.x targeted book/tutorial/resource. our jsf wiki page starting point.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -