I am working on an app that is using subviews. I have a menu subview at the top of the page. the lower half is the main content area. To track navigation I have a navigation bean which keeps track of what the next page should be.
I can't get my subviews to display JSF components.
I initialy get my currentPage like this
then I load the subview with
the subview is a file saved as filename.jspf
and is within an <f:subview>
The page loads alright but isn't displaying any components.
One of the reasons for using JSF is that you separate the definition of your backingbeans from the JSP so that maintenance is improved. And if you want to change your backingbean there is one single point of entry.
In this file you can also define your navigationrules.
Sorry that I can't help you. I try to understand your problem. If what I understand now is that the standaard way of navigating isn't helping you and that you have defined your own way. The problem with this is as my experience that you will encounter a lot of different problems because your are leaving a working of core-element of a framework.
But if you have a name binding in your <f:subview> the backingbean will be instantiated.
My JSF-applications I mostly also use a menu in a separate subview, but I don't experience any problems with the default navigation. Do you want to have different menu's visible depending on the page?
Also if you define a navigationrule on the mainform of the view where you include the subview. Only the mainform with the subview will be shown.
But now it's difficult for me to help you, because I don't know your exact problem.