I have an existing application to modify. The requirement is to add a few static HTML pages (like about us, terms of use etc) to the existing home page, which is a JSF page.
I did research and found out that, to deliver a JSF page, there needs to be :
- xhtml page
- a Managed Bean
- an entry in the faces-config.xml.
My question is - is the managed bean required for even delivering the static pages?
So far, I have done this:
Created aboutus.xhtml
Snippet from home page with links :
<h:link value="#{defaultPageBundle['about.us.link.label']}" outcome="aboutus"/>
Current faces config for home page:
<navigation-case> <from-outcome>home</from-outcome> <to-view-id>/home.jsf</to-view-id> <redirect/> </navigation-case>
When I click the link, it goes to aboutus.jsf, but still shows my default home page. Should I add a managedBean to deliver each of these static pages? Or, am I really missing something in the workflow?