Note that there are some explanatory texts on larger screens.

plurals
  1. POPage navigation with JSF
    primarykey
    data
    text
    <p>Probably this is a simple question, but i don't know its answer.</p> <p>I have a project, myProject. In webContent I have the files home.xhtml, leave.html and I have 2 other folders: cats and dogs. In the cats directoy I have a page cat.xhtml, and in the directory dogs I have a page dogs.xhtml.</p> <p>I want to go from each page (home,cats, dogs) to page leave.html In each file there is a <code>commandLink</code></p> <pre><code>&lt;h:form&gt; &lt;h:outputLink value="leave.html" action="#{myBean.leave}"&gt; &lt;f:verbatim&gt;Leave&lt;/f:verbatim&gt; &lt;/h:outputLink&gt; &lt;/h:form&gt; </code></pre> <p><code>myBean</code> in method <code>leave</code> returns a string "leave" </p> <pre><code>&lt;navigation-rule&gt; &lt;from-view-id&gt;*&lt;/from-view-id&gt; &lt;navigation-case&gt; &lt;from-outcome&gt;leave&lt;/from-outcome&gt; &lt;to-view-id&gt;/leave.html&lt;/to-view-id&gt; &lt;/navigation-case&gt; &lt;/navigation-rule&gt; </code></pre> <p>But this doesn't work. I also tried using <code>&lt;to-view-id&gt;../leave.html&lt;/to-view-id&gt;</code> or add a new folder leave and put in there the leave.html page. I used <code>&lt;to-view-id&gt;/leave/leave.html&lt;/to-view-id&gt;</code> or <code>&lt;to-view-id&gt;/../leave.html&lt;/to-view-id&gt;</code></p> <p>but all have the same result HTTP Status 404 /myProject/cats/leave.htlm type Status report</p> <blockquote> <p>message /myProject/cats/leave.htlm</p> <p>description The requested resource ( /myProject/cats/leave.htlm) is not available.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload