The apex:param is not passing the contact value to backend. Please correct me where i am going wrong.
<apex:pageblocktable value="{!lstWrapContactRoles}" var="cr" id="pbt" >
<apex:column headerValue="Contact">
<apex:inputfield value="{!cr.objConRole.Contact__c}" onchange="if(this.value){addfunc();}" id="conId"> <!-- US 410 -->
<apex:param name="personID" value="{!cr.objConRole.Contact__c}" assignTo="{!Contactid}" />
</apex:inputfield>
</apex:column>
<apex:actionfunction name="addfunc" action="{!addNew}" reRender="pbt" oncomplete="codeAddress();checkboxuse();"/>
Apex:
public Id Contactid {get; set;}
Public vooid addnew(){
system.debug('=='+System.currentPageReference().getParameters().get('personID'));
system.debug('strContactid'+ApexPages.currentPage().getParameters().get('Contactid'));
}
Both the debugs are null.