JSF 2.0 method invocation with argument from var of dataGrid
- by little_b
Hello
I use primefaces with facelets and i have a quastion:
for example i have dataGrid and i want to call method of bean, that registered in faces-config, to include some dynamic content:
<p:dataGrid var="provider" value="#{paymentFormBean.providers}">
<ui:include src="contentFactory.getSpecificForm('some attribute')"/>
</p:dataGrid>
How could i invoke getSpecificForm method with argument from var of dataGrid? Something like:
<p:dataGrid var="provider" value="#{paymentFormBean.providers}">
<ui:include src="contentFactory.getSpecificForm(provider.formName)"/>
</p:dataGrid>
Could anyone help me?
Thank you