Passing the backing bean as a parameter to a Facelet include

You can use <ui:param> for that. It needs to be nested in the <ui:include>.

<ui:include src="https://stackoverflow.com/questions/16842912/formView.xhtml">
    <ui:param name="ParameterBean" value="#{Bean}" />
</ui:include>

Unrelated to the concrete problem, standard Java Naming Conventions state that instance variable names must start with lower case. You should change your code in such way that respectively parameterBean and #{bean} will be used.

Leave a Comment