JSF 2.0 method invocation with argument from var of dataGrid

Posted by little_b on Stack Overflow See other posts from Stack Overflow or by little_b
Published on 2010-12-26T13:44:17Z Indexed on 2010/12/26 14:53 UTC
Read the original article Hit count: 293

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about jsf