You need to sign in to do that
Don't have an account?
apex:param assignto is not passing any values
Hello,
I am trying to pass a value from the visualforce page to my apex code. I am using the <apex:param assignto to pass values, but nothing gets updated when I run the action.
<apex:dataList value="{!sameCategoryContents}" var="content" styleClass="slides" id="slider2">
<apex:commandLink rerender="page:player-container" action="{!updateCurrentContent}">
<apex:param value="TEST" assignTo="{!currentContentId}" />
<apex:image value="{!content.Sm_Image_URL__c}"
style="width:175px;height:95px; border-radius: 7px; cursor:pointer;" title="{!content.name}" >
</apex:image>
</apex:commandLink>
</apex:dataList>
</apex:outputPanel>
And I set the variable in my apex:code
public String currentContentId {get; set;}
But I keep clicking on the link in the visualforce but the variable never ever gets updated. Thank you.
I just went through this myself. Try something like this this:
Basically you need the outputpanel and actionsupport in there.
Hi,
Please check if this works
Thanks