jsf 2 - HTTP status code 500 (internal server error) while loading a JSF page -
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <body> <h:form><center> <h:panelgrid columns="2"> <h:outputtext value="login: " /> <h:inputtext value="#{usbusiness.user.login}"/> <h:outputtext value="mot de passe:" /> <h:inputext value="#{usbusiness.user.pwd}" /> <h:commandbutton id="submit" action="#{usbusiness.user.connecter}" value="connecter" /> <h:commandbutton id="submit" action="#{usbusiness.user.connecter}" value="annuler" /> </h:panelgrid> </center></h:form> </body> </html>
after tried access page i've got following error:
there internal server error prevented fulfilling request.
the exception:
javax.servlet.servletexception: /authentification.xhtml @12,49 <h:inputext> tag library supports namespace: http://java.sun.com/jsf/html, no tag defined name: inputext javax.faces.webapp.facesservlet.service(facesservlet.java:270) org.ajax4jsf.webapp.basexmlfilter.doxmlfilter(basexmlfilter.java:178) org.ajax4jsf.webapp.basefilter.handlerequest(basefilter.java:290) org.ajax4jsf.webapp.basefilter.processuploadsandhandlerequest(basefilter.java:390) org.ajax4jsf.webapp.basefilter.dofilter(basefilter.java:517)
can tell me doing wrong?
there typo in 1 of tags:
<h:inputext value="#{usbusiness.user.pwd}" />
should be
<h:inputtext value="#{usbusiness.user.pwd}" />
Comments
Post a Comment