In JSF navigation rule, show as following

<navigation-rule>
    <from-view-id>/pages/inputname.jsp</from-view-id>
    <navigation-case>
      <from-outcome>sayHello</from-outcome>
      <to-view-id>/pages/greeting.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
      <from-outcome>sayGoodbye</from-outcome>
      <to-view-id>/pages/goodbye.jsp</to-view-id>
    </navigation-case>
  </navigation-rule>

In this example, click button in inputname.jsp can change page to
greeting.jsp, but the url in IE has no change, means it is as same
"inputname.jsp", click link in greeting.jsp to goodbye.jsp, url in IE
is "greeting.jsp"
Seams it is always one step after current page. it works fine by click
link. but if I refresh current page, it displayed previous page not
current page.
This can be solved by add <redirect/> in each navigation-case. But why
default action has such problem? What is the purpose?


--

Anthony Hong

Reply via email to