When we click on the commandbutton"Accept" - the record ID of the record on this particular row is assigned to the property "ADealID" of the controller
You can use the apex:param tag with commandbutton such that you can assign any value to a property in the controller using the attributes of this tag: https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_param.htm
When we click on the commandbutton"Accept" - the record ID of the record on this particular row is assigned to the property "ADealID" of the controller
this is from a pagetableblock which has this button on every row of the table
<apex:commandButton value="Accept" action="{!CreateAcceptDealAction}" >
<apex:param name="ADealID" assignto="{!AdealID}" value="{!DealMapWrapper[d].deal.id}"></apex:param> </apex:commandButton>
When we click on the commandbutton"Accept" - the record ID of the record on this particular row is assigned to the property "ADealID" of the controller
in the controller: public String Adeal {get;set;}
All Answers
https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_param.htm
but can you tell me a little more detail?
this is from a pagetableblock which has this button on every row of the table
<apex:commandButton value="Accept" action="{!CreateAcceptDealAction}" >
<apex:param name="ADealID" assignto="{!AdealID}" value="{!DealMapWrapper[d].deal.id}"></apex:param> </apex:commandButton>
When we click on the commandbutton"Accept" - the record ID of the record on this particular row is assigned to the property "ADealID" of the controller
in the controller: public String Adeal {get;set;}