I found another way to send information from the UI: Enable in Bean in JSF 2.2. By setting a hidden value and referring to a method in a bean. eg:
<ui:include src="/toInclude.xhtml"> <ui:param name="idValue" value="#{masterBean.idValue}" /> </ui:include>
No need to use: in an intitial line in this file. First, this hidden parameter will be specified, which will be set in the Bean in order. And in toInclude.xhtml will be:
<h:inputHidden id="idValue" value="#{toIncludeBean.putIdValue(idValue)}" />
in Bean:
@Named(value = "toIncludeBean") @Scope("view") public class ToIncludeBean { private String value; public void putIdValue(String idValue) {
source share