I'm starting with PrimeFaces following an example of Youtube, and when I run my application reference error appears.
My environment is as follows: Server: Tomcat 8 JavaServerFaces: 2.2.9 PrimeFaces: 5.2 IDE: Eclipse Mars (4.5).
When i run the application, the following error appears:
Estado HTTP 500 - Error Parsing /index.xhtml: Error Traced[line: 20] The element type “h:form” must be terminated by the matching end-tag “</h:form>”
My index.xhtml is:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<h:title>Insert title here</h:title>
</h:head>
<h:body>
<h:form>
<p:outputLabel value="Nombre" />
<p:inputText value="#{personaBean.persona.nombre}" />
<p:outputLabel for="Sexo" value="Basic:" />
<p:selectOneMenu id="sexo" value="#{personaBean.persona.sexo}" />
<f:selectItem itemLabel="MASCULINO" itemValue="M" />
<f:selectItem itemLabel="FEMENINO" itemValue="F" />
</p:selectOneMenu>
</h:form>
</h:body>
</html>
Thanks in advance for your help.
Gustavo Echenique