I want to pass the value of the pressed link to the controller - Is that possible with
<apex:actionsupport >
?
Or should I use the apex:param for this?
<apex:column style="float:right;">
<apex:commandLink value="{!acc.name}" reRender="accountId,selectedProductListId" action="{!proceedToUpload}" oncomplete="closeTable();">
<apex:param value="{!acc.Id}" name="act" />
<apex:param value="{!acc.Name}" name="accountName" />
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
I want to know if I can do it on the same way like in the apex:selectList:
<apex:selectList styleClass="form-control" size="1" value="{!productSelected}" id="selectedProductListId">
<apex:selectOptions value="{!productoList}" id="selectOptionsProductId"/>
<apex:actionSupport action="{!checkTheValues}" event="onchange" reRender="selectedProductItemListId" />
</apex:selectList>
and then I will have the value: 'productSelected' on the controller after the apex:supportAction ran without using the apex:param...
(and of course I will have 'productSelected' variable with get;set; inside the controller)