This is a best practice question in JSF (2.2) to advanced Java EE developers.
In my Java EE project with JSF frontend I have a lot of implicit navigation rules in the two ways of:
<h:commandButton value="Link 1" action="pageXY" />
<h:commandButton value="Link 2" action="#{pageBacking.doAction()}" />
Now I moved lots of pages from the webapp diretory to the subdirectory webapp/user.
Because of the implicit navigation rules scattered over the whole huge project, it would be a costly approach to search/replace every occurence of every moved page. Especially if I would move pages in future again.
My Question
- Is there a convenient way to refactor page moves (in Eclipse)?
- Is there a better approach or a pattern how to define flexible navigation in JSF 2.2?
- If sb. would advice explicit navigation rules in the faces-config.xml as used prior to JSF 2.0, which right to exist has implicit navigation then?