I wish to have a Master-Page, and switch content in this. I currently have it working by having the content pane of my masterpage defined by <ui:include src="#{navigation.currentPane}" />
The navigation bean holds the current navigation path for the content facelet. The content is updated with ajax.
Is this the correct way? Does it have any downsides?
It can be problems if you use ViewScoped beans. EL in src can lead recreating your bean with every request. With SessionScoped beans I think it works fine.