0

Is there a efficient way to find unused navigation rules in faces-config due to pages removed or outcome never fired?

Thank you in advance.

BC906
  • 11
  • 1
  • 3

1 Answers1

0

I'm not aware of anything within the JSF API/Impl that can accomplish that for you.

However, you can enable logging and keep track of the different navigation cases used.

For example, MyFaces logs the following line from NavigationHandlerImpl#handleNavigation:

 fromAction=#{bean.doSomething} outcome=someMapping toViewId =/faces/somePage.xhtml redirect=false

You could then collect those logs and figure out which nagivations are not used.

volosied
  • 151
  • 1
  • 6