Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are not taking advantage of JSF templates. Instead of using a template and several template clients you have everything in one page; and render stuff conditionally. Look this <a href="http://www.mastertheboss.com/java-ee-16-articles/265-facelets-tutorial.html" rel="nofollow">tutorial</a> or any other tutorial about jsf tempaltes.<br/> Normally you would have a template, which has all the layout and content common to all pages; and uses the tag <code>&lt;ui:insert name="title" &gt;Default content&lt;/ui:insert&gt;</code> as many times as you need (with different names). Then you create a template client, defining the template using </p> <pre><code>&lt;ui:composition template="./../resources/templates/templateFile.xhtml"&gt; </code></pre> <p>And then use the tag <code>&lt;ui:define name="nav2"&gt;</code> to set the content to include in the template.</p> <p>Besides that, about the problem with navigation in your code: when you do a navigation you don't update content, because after a navigation the page is completely loaded (no ajax). So first of all you have to remove your update attribute; and also you have to set the "ajax" attribute of p:menuitem to false; because by default it's true. otherwise navigation will not take place.<br/> the redirect attribute in the navigation rule is not required if you did things ok. It can work perfectly fine with a forward. The only problem with forward is that the browser URL will not change, because browser is not notified of the navigation.</p>
    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.
    1. VO
      singulars
      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