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:
- our facelets wiki page
- how include xhtml in xhtml using jsf 2.0 facelets?
- migrating jsf 1.2 jsf 2.0
- why facelets preferred on jsp view definition language jsf2.0 onwards?
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
Post a Comment