Visual Force:
<apex:component controller="MemberClaimsRelatedListController">
<apex:pageBlock title="Claims" id="related-page-block">
<apex:pageblockTable value="{!selectedClaims}" var="each">
<apex:column headerValue="Add To Case" width="5">
<apex:commandButton value="Add to Case" action="{!addToCase}" reRender="related-page-block">
<apex:param assignTo="{!clickedClaim}" value="{!each.ClaimId__c}"/>
</apex:commandButton>
</apex:column>
</apex:pageblockTable>
</apex:pageBlock>
</apex:component>
Controller method:
public String clickedClaim { get; set; }
public PageReference addToCase() {
System.debug('This claim was clicked: ' + clickedClaim);
return null;
}
Debug:
USER_DEBUG|[118]|DEBUG|This claim was clicked: null
ClaimId__c is set
USER_DEBUG|[53]|DEBUG|claims: (ClaimSummary__x:{claimId__c=123456, ...}
Why would my value be null?