1

At the beginning of my JSF Web Application I am directed to index.xhtml by NetBeans.

From here I successfully navigated to a .xhtml file in subfolder using the following code:

<h:commandButton value="Go to Question 1" action="QuestionPages/question_1"/>

Within this .xhtml file I wanted to include a "Homepage" button navigate back to the original index.xhtml file.

To do this I tried the following code:

<h:commandButton value="Homepage" action="../index" />

This did not work. I have also tried several other variations of this with no success.

Here is the error message:

enter image description here

I have attached an image of the file system, as it appears in NetBeans, for clarity.

enter image description here

A solution would be greatly appreciated!

deanshanahan
  • 318
  • 5
  • 14
  • Tip 1: next time you get an error message, use it as search keyword. Results almost guaranteed. Tip 2: better use if it's pure page-to-page navigation. See also http://stackoverflow.com/questions/13070537/difference-between-hbutton-and-hcommandbutton – BalusC Apr 01 '16 at 19:11
  • Apologies and thank you for the help! – deanshanahan Apr 01 '16 at 20:02

0 Answers0