Navigation problem
Hello all,
I have a problem with JSF navigation and even though i read most of the solutions in the forum i I couldnt work it through.I hope u guyz can gimme a solution
I want simple navigation from one page to another based on action
from /page1.hello to /page2.hello
here is my faces-config.xml
<navigation-rule>
<from-view-id>/web/test/menu1/page1.jsp</from-view-id>
<navigation-case>
<from-action>success</from-action>
<to-view-id>/web/test/menu1/page2.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>fail</from-action>
<to-view-id>/web/test/menu1/page3.jsp</to-view-id>
</navigation-case>
</navigation-rule>
In my page1.jsp I have the following code
<h:commandLink id="cmdlink" action="#{MyBean.getSomeData}">
<t:outputText value="#{table.col1}"/>
</h:commandLink>
and this is the code in the MyBean class
public String getSomeData()
{
try
{
Bean1 rowData = (Bean1)tableModel.getRowData();
return"success";
}
catch(Exception e)
{
e.printStackTrace();
return"fail";
}
}
I have also used <h:messages/> but dont get any message.When i click in page1.jsp it just returns to the same page without going anywhere...anything i might have missed out?
best wishes
Neo

