Bem o eclipse ta reclamando (aquele símbolo de um triângulo amarelo com uma !), mais eu não sei o pq...
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<f:view>
<body>
<h:form>
<h:commandButton value="Preciso de ajuda!" action="ajuda" /> //Ele reclama nessa linha o nome ajuda fica sublinhado...e o simbolo no canto...
<br />
<h:outputText value="Nome: " />
<h:inputText value="#{agendaContatoBean.contato.nome}" />
<br />
<h:outputText value="Endereço: " />
<h:inputText value="#{agendaContatoBean.contato.endereco}" />
<br />
<h:outputText value="Sexo: " />
<h:inputText value="#{agendaContatoBean.contato.sexo}" />
<br />
<h:commandButton actionListener="#{agendaContatoBean.incluirContato}"
value="Incluir" />
<br />
<br />
<h:dataTable var="obj" value="#{agendaContatoBean.contatos}"
border="1" width="100%">
<h:column>
<f:facet name="header">
<h:outputText value="Nome" />
</f:facet>
<h:outputText value="#{obj.nome}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Endereço" />
</f:facet>
<h:outputText value="#{obj.endereco}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Sexo" />
</f:facet>
<h:outputText value="#{obj.sexo}" />
</h:column>
</h:dataTable>
</h:form>
</body>
</f:view>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<managed-bean-name>agendaContatoBean</managed-bean-name>
<managed-bean-class>com.algaworks.dwjsf.visao.AgendaContatoBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<navigation-case>
<from-outcome>ajuda</from-outcome>
<to-view-id>/ajudaOnline.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
Ele reclama o isso:
the action value does not match a navigation case outcome[/code]
Mais eu não entendi oq isso quer dizer... Alguem pode ajudar??
ps: Minha pagina executa normalmente, mais tenho medo que isso geri um problema futuro...
