Use EL-expression as viewId, e.g.
Thank you for your answer!
But what does this bean-class looks like? And I certainly have to provide an action for the "rich:menuItem"-component... What about the navigation in faces-config?
Can you give me more informations?
Nick tells you about just management of the EL binding in your action - so changing the included pages on the fly. It is not a standard jsf navigation.
Standard JSF navigation from ajax controls could be used only within a4j:include (check dev sample) or if the navigation cases are redirects. But you can't combine include faces-config based navigation and outside controls.