You need to sign in to do that
Don't have an account?
Ross Gilbert 31
apex:actionsupport not working within apex:repeat
Does anyone know why this won't work?
The following code works, wher eteh actionsupport attribute is outside the apex:repeat attribute. When a user clicks the link in a VF page it updates the user's related contact record with a couple values:
However when I just move that outputlink and its action support INSIDE the apex:repeat attribute...the action support functionality stops working. This does not work:
Anyone know how to fix this?
The following code works, wher eteh actionsupport attribute is outside the apex:repeat attribute. When a user clicks the link in a VF page it updates the user's related contact record with a couple values:
<apex:form > <apex:outputLink value="https://www.salesforce.com" target="_blank" id="theLink">www.salesforce.com <apex:actionSupport event="onclick" action="{!setFTPClickedInfo}" rerender="testOPP" immediate="true"> <apex:param name="clickLink1" assignTo="{!clickedURL}" value="Download"/> </apex:actionSupport> </apex:outputLink> <apex:repeat var="posid" value="{!assetIdToPosId[assetKey]}">
However when I just move that outputlink and its action support INSIDE the apex:repeat attribute...the action support functionality stops working. This does not work:
<apex:form > <apex:repeat var="posid" value="{!assetIdToPosId[assetKey]}"> <apex:outputLink value="https://www.salesforce.com" target="_blank" id="theLink">www.salesforce.com <apex:actionSupport event="onclick" action="{!setFTPClickedInfo}" rerender="testOPP" immediate="true"> <apex:param name="clickLink1" assignTo="{!clickedURL}" value="Download"/> </apex:actionSupport> </apex:outputLink>
Anyone know how to fix this?
See the following SFSE post for an example of how that works: http://salesforce.stackexchange.com/questions/24175/passing-method-parameters-with-apexactionfunction