I have found a lot of information on how to use ui:include and now would like to use it. I have several controls on multiple pages that do the exact same thing but the models (values, etc.) on each are slightly different. Is there a way to dynamically assign, maybe via a property on the backing bean, the value to a control?
For example:
<h:form id="formQInfo1">
<h:outputText escape="false" value="#{surveyFormController.selectedQuestionResponse.questionInfo1.response}"/>
</h:form>
Now I want to send the selectedQuestionResponse from the backing bean of the parent xhtml page and assign it to the included xhtml page. Or better yet, can I make the actual value call different backing beans dynamically?
And if I am going in the wrong direction and there is a better way to do this, I would love to hear about it!
Thanks!