I work in eclipse and GlassFish, but when I run my XHTML page this error appears: "/c.xhtml @23,45 value="#{Bonjour.nom}": Target Unreachable, identifier 'Bonjour' resolved to null"
this is the first page <!DOCTYPE html>
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Ins�rer le titre ici</title>
</h:head>
<h:body>
<h1>Premier exemple JSF 2.0 - bonjour.xhtml</h1>
<h:form>
<h:inputText value="#{Bonjour.nom}"> </h:inputText>
<h:commandButton value="Souhaiter la Bienvenue" action="d"></h:commandButton>
</h:form>
</h:body>
this is the code of the target page
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Ins�rer le titre ici</title>
</h:head>
<h:body>
<h1>Premier exemple JSF 2.0 - bienvenue.xhtml</h1>
<p>Bienvenue #{Bonjour.nom} !</p>
</h:body>
the code of web.xml:
<?xml version="1.0" encoding="UTF-8"?>
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> Poject_JSF
<!-- Changer cette valeur à "Production" lors du déploiement final de l'application -->
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<!-- Déclaration du contrôleur central de JSF : la FacesServlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Mapping : association des requêtes dont le fichier porte l'extension .xhtml à la FacesServlet -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>