0

In JSF page navigation should i use navigation rules defiend in faces-config.xml like

 action="#{bean.actionGoToPage}"
 private String actionGoToPage(){
        return "from-outcome";
    }

or i can use link to the page direct like

href='index.xhtml'

what is the best practices?

Ahmed
  • 23
  • 1
  • 5
  • `` generates a POST HTTP request. Use other components like ``, `` or ``, if it is a pure page-to-page navigation. – Tiny Sep 15 '15 at 05:26
  • Thanks Tiny My concern not related to which component should i use commandLink or link.My concenr shoud i use navigation rules or call the page direct in the link or cmmand – Ahmed Sep 15 '15 at 05:31
  • You have posted a really bad example, mixing two completely separate concepts. You should instead have asked something like "`` vs ``". That is also already answered before: http://stackoverflow.com/q/18037884 Regardless, I strongly recommend you to review your JSF learning resources. You should already have known the terms "implicit navigation" and "explicit navigation". This is a good starting point: http://stackoverflow.com/tags/jsf/info – BalusC Sep 15 '15 at 06:33
  • Mnay thahks its good example – Ahmed Sep 20 '15 at 05:33

0 Answers0