i included one template with an generic id
<ui:include src="./buttons.xhtml">
<ui:param name="action" value="#{bean.nextSessionId()}" />
</ui:include>
buttons.xhtml
<ui:composition>
hello-#{action}-#{action}
</ui:composition>
output
hello-obcpusp90m7653vci7ohh87aa3-vcv63aj2h8h8gak3dhb5do0
the bean is viewscoped
private SecureRandom random = new SecureRandom();
public String nextSessionId()
{
return new BigInteger(130, random).toString(32);
}
why the id not equals?
i need the id for this
<p:commandButton id="basic#{action}" value="Basic" onclick="dlg1#{action}.show()" type="button" process="@this"/>
<p:confirmDialog id="id#{action}" widgetVar="dlg1#{action}">
<p:inputText value="....."/>
<p:commandButton oncomplete="dlg1#{action}.hide()" value="Close"/>
</p:confirmDialog>