• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.faces.FacesException: Could not resolve NavigationCase for outcome: index

 
Akhil Pratap Singh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one template.xhtml file at /template/template.xhtml


I have tabs.xhtml file at /tabs/tabs.xhtml






I am getting the following exception because of the **ui include** tag in template.xhtml. Is the src attribute of ui include is wrong.:

 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.) The contents of an include must be wrapped inside a ui:composition
2.) Why do you have an empty <h:head tag inside the tabs.xhtml?
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The included View sub-template (tabs.xhtml) is supposed to be a fragment, so the inclusion of head and body tags isn't appropriate for that fragment. The ui:component tag, as mentioned, is appropriate, as it allows you to specify a valid XML while directing JSF to ignore parts of the sub-template that won't actually be included when the composite View is prepared.

Regardless, what did you define as a navigation rule for "index" in your faces-config.xml or bean annotations?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!