I have a dataTable which is iterating over lineItems which is a object of a class InvLineItem ,i need to call a action function which will take InvLineItem object as argument but its working. tested with some other data types like Sting or number,Its working with them, Please tell me if there is any way to do this??
Page
<apex:dataTable id="LineItem" value="{!lineItems}" var="lineItemSUT">
<script>
onChangeProduct(lineItemSUT);
</script>
</apex:dataTable>
<apex:actionFunction name="onChangeProduct" action="{!updateProductItem}" oncomplete="CODA.resumeQueueProcessing(); >
<apex:param name="lineItemSUTParam" assignTo="{!lineItem}" value="" />
</apex:actionFunction>
Controller
InvLineItem lineItem{get;set;}
public InvLineItem[] getLineItems()
{
lineItem.callOtherFunc();
}
public void updateProductItem()
{
}