Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

¿Why JSF 2.2 not render my PrimeFaces "selectOneMenu" component?

gecheniqueAug 18 2015 — edited Sep 2 2015

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

This post has been answered by Mriem-Oracle on Aug 19 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2015
Added on Aug 18 2015
2 comments
2,834 views