Olá pessoal. Sou novo em JSF. To tentando fazer um exemplo extremamente simples, mas to tendo problemas com a navegação. O ecemplo é um formulário que pede nome e senha do usuario e depois exibe uma página de boas vindas com o nome do usuário. A aplicação sobre sem problemas e o formulário é enviado mas a navegação que eu defino no faces-config.xml não funciona. Seguem as páginas e o arquivo faces-config.xml
index.jsp
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<f:view>
<head>
<title>A simple Java Server Faces Example!</title>
</head>
<body>
<h:form>
<h3>Please, enter your name and password</h3>
<table>
<tr>
<td>Name:</td>
<td><h:inputText value="#{user.name}" />
</tr>
<tr>
<td>Password:</td>
<td><h:inputSecret value="#{user.password}" /></td>
</tr>
</table>
<p>
<h:commandButton value ="Login" action="login"></h:commandButton>
</p>
</h:form>
</body>
</f:view>
</html>
welcome.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<f:view>
<head>
<title>A simple Java Server Faces example</title>
</head>
<body>
<h:form>
<h3>
Welcome to Java Server Faces,
<h:outputText value="#{user.name}"/>!
</h3>
</h:form>
</body>
</f:view>
</html>
faces-config.xml
<?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>
<description>User Name Bean</description>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.corejsf.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>name</property-name>
<property-class>java.lang.String</property-class>
<value/>
</managed-property>
</managed-bean>
<navigation-rule>
<from-view-id>/index.jsf</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/pages/welcome.jsf</to-view-id>
</navigation-case>
</navigation-rule>
<application>
<locale-config/>
</application>
<factory/>
<lifecycle/>
</faces-config>

