How to navigate to a page in a folder?

2019-07-29 05:01发布

问题:

I have a problem with navigating to the JSF page when I move it into the folder, for example I have a page called ListOfUsers.xhtml which usually was kept in the root folder (I believe Web Pages folder is the root) and was working fine, page loaded while button was clicked. The code for the button looked like this:

<h:form>
<h:commandButton action="ListOfUsers" value="Manage users" /><br/>
</h:form>

Now I have moved the file into Web Pages/users folder and it gives me FileNotFound exception or "Unable to find matching navigation case with from-view-id '/MainPage.xhtml' for action '../users/ListOfUsers' with outcome '../users/ListOfUsers'"
I was trying all combinations like /users/ListOfUsers, ../users/ListOfUsers and nothing seems to work. I realize that this is something really easy, but I cannot afford to waste anymore time on trying to resolve it, I will appreciate any attempt of help.