title: javax.faces.FacesException: Could not resolve NavigationCase for outcome
body: <p>I have one template.xhtml file at /template/template.xhtml</p>
  
  <pre><code>&lt;h:head&gt;
  
  &lt;/h:head&gt;
  
  &lt;h:body&gt;
      &lt;p:layout fullPage="true"&gt;
          &lt;p:layoutUnit position="north" size="100"&gt;
              &lt;h:outputText value="header"&gt;&lt;/h:outputText&gt;
          &lt;/p:layoutUnit&gt;
          &lt;p:layoutUnit position="center"&gt;
              &lt;p:layout&gt;
                  &lt;p:layoutUnit position="north"&gt;
                      &lt;h:outputText value="tabs"/&gt;
                      &lt;ui:include src="/tabs/tabs.xhtml"/&gt;
                  &lt;/p:layoutUnit&gt;
                  &lt;p:layoutUnit position="west"&gt;
                      &lt;h:outputText value="left menu"&gt;&lt;/h:outputText&gt;
                  &lt;/p:layoutUnit&gt;
                  &lt;p:layoutUnit position="center"&gt;
                      &lt;h:outputText value="main-content"&gt;&lt;/h:outputText&gt;
                  &lt;/p:layoutUnit&gt;
              &lt;/p:layout&gt;
          &lt;/p:layoutUnit&gt;
          &lt;p:layoutUnit position="south" size="100"&gt;
              &lt;h:outputText value="footer"&gt;&lt;/h:outputText&gt;
          &lt;/p:layoutUnit&gt;
      &lt;/p:layout&gt;
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have tabs.xhtml file at /tabs/tabs.xhtml</p>
  
  <pre><code> &lt;h:head&gt;
  
  &lt;/h:head&gt;
  
  
  &lt;p:tabMenu activeIndex="#{param.i}"&gt;
      &lt;p:menuitem value="Overview" outcome="index"&gt;
          &lt;f:param name="i" value="0" /&gt;
      &lt;/p:menuitem&gt;
      &lt;p:menuitem value="Demos" outcome="index"&gt;
          &lt;f:param name="i" value="1" /&gt;
      &lt;/p:menuitem&gt;
      &lt;p:menuitem value="Documentation" outcome="index"&gt;
          &lt;f:param name="i" value="2" /&gt;
      &lt;/p:menuitem&gt;
      &lt;p:menuitem value="Support" outcome="index"&gt;
          &lt;f:param name="i" value="3" /&gt;
      &lt;/p:menuitem&gt;
      &lt;p:menuitem value="Social" outcome="index"&gt;
          &lt;f:param name="i" value="4" /&gt;
      &lt;/p:menuitem&gt;
  &lt;/p:tabMenu&gt;
  </code></pre>
  
  <p>I am getting the following exception because of the <strong>ui include</strong> tag in template.xhtml. Is the src attribute of ui include is wrong.:</p>
  
  <pre><code>javax.faces.FacesException: Could not resolve NavigationCase for outcome: index
  at org.primefaces.renderkit.OutcomeTargetRenderer.getTargetURL(OutcomeTargetRenderer.java:86)
  at org.primefaces.component.menu.BaseMenuRenderer.encodeMenuItem(BaseMenuRenderer.java:162)
  at org.primefaces.component.tabmenu.TabMenuRenderer.encodeItem(TabMenuRenderer.java:89)
  at org.primefaces.component.tabmenu.TabMenuRenderer.encodeMarkup(TabMenuRenderer.java:65)
  at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:108)
  at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
  at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:85)
  at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:68)
  at org.primefaces.component.layout.LayoutUnitRenderer.encodeEnd(LayoutUnitRenderer.java:49)
  at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
  at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:85)
  at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:68)
  at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:83)
  at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:68)
  at org.primefaces.component.layout.LayoutUnitRenderer.encodeEnd(LayoutUnitRenderer.java:49)
  at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
  at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
  at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1651)
  at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1651)
  at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1651)
  at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:395)
  at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
  at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
  at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
  at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
  at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
  at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
  </code></pre>