Galera peguei um exemplo de uma aplicação feita em JSF mais esta dando um erro e não consigo resolver tenho uma pagina index com um link para chamar uma pagina simples de inserir dados mais esta dando erro essa parte aqui #{agenda.os atributos da pagina} .nome, .endereco, … sei que e aqui pois quando tiro #{agenda. } funciona.
alguém pode me ajudar ?
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<body>
<f:view>
<h:form>
<center>
<h2>Inserção</h2>
</center>
<br>
<h3>Entre com os dados abaixo</h3>
<table>
<tr>
<td>Nome:</td>
<td><h:inputText value="#{agenda.nome}" /></td>
</tr>
<tr>
<td>Endereço:</td>
<td><h:inputText value="#{agenda.endereco}" /></td>
</tr>
<tr>
<td>Cidade:</td>
<td><h:inputText value="#{agenda.cidade}" /></td>
</tr>
<tr>
<td>Telefone:</td>
<td><h:inputText value="#{agenda.telefone}" /></td>
</tr>
</table>
<p><h:commandButton value="Inserir" action="#{agenda.inserir}" />
</p>
</h:form>
<br>
<h:outputLink value="index.jsf"><f:verbatim>voltar</f:verbatim></h:outputLink>
</f:view>
</body>
</html>
Aqui e o faces-config.xml
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-view-id>/buscar.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/sucesso_busca.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/falha_busca.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/inserir.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/sucesso_insercao.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/falha_insercao.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>agenda</managed-bean-name>
<managed-bean-class>AgendaDB</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>