Boa tarde galera,estou com um problema na <from-action> do face-config. Toda vez que defino um valor para esta tag, ele não executa a action deseja,não redirecionando minha página.
Alguem poderia ajudar?
[b]
ManagedBean
public class InscricaoBean {
public String inscrever()
{
return "sucesso";
}
}[/b]
[b]faces-config
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns=“http://java.sun.com/xml/ns/javaee”
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”
version=“1.2”>
<managed-bean>
<managed-bean-name>inscricaoBean</managed-bean-name>
<managed-bean-class>com.br.inscricao.InscricaoBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/inscricao.jsp</from-view-id>
<navigation-case>
<from-action>#{inscricaoBean.inscrever}</from-action>
<from-outcome>sucesso</from-outcome>
<to-view-id>sucesso.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
[/b]
[b]Página:
<body>
<f:view>
<h:form>
<h:outputText value="Nome"></h:outputText>
<h:inputText value="#{inscricaoBean.nome }"></h:inputText>
<h:outputText value="Email"></h:outputText>
<h:inputText value="#{inscricaoBean.email}"></h:inputText>
<h:outputText value="#{inscricaoBean.mensagem}"></h:outputText>
<h:commandButton value="Inscreve" action="#{inscricaoBean.inscrever }"></h:commandButton>
</h:form>
</f:view>
</body>
[/b]