2013-08-01 62 views
1

有什麼辦法如何從文件「file1.xhtml」導航到位於父文件夾中的另一個文件「file2.xhtml」實現「faces- config.xml「導航根本不使用。JSF2導航到* .xhtml文件從子文件夾* .xhtml文件

ProjectName 
+---+ 
    WebContent 
    +---+ 
    | subfolder 
    | +---+ 
    |  file1.xhtml 
    +---+ 
     file2.xhtml 

導航從file2.xhtml到file1.xtml:

<h:link value="Go to file1" outcome="subfolder/file2" /> 

導航從file1.xhtml到file2.xtml:

<h:link value="Go to file2" outcome="?" /> 

回答

2

下面應該工作

<h:link value="Go to file1" outcome="/file1" /> 
相關問題