You need to sign in to do that
Don't have an account?
s_mac
passing parameter from vf page to controller
I have a vf page listing accounts,on clicking on the account name field(link) account related contacts to be displayed dynamically I am trying to pass the account(clicked) from page to controller but in the debug logs I dnt see any value its null.
<apex:pageBlockTable value="{!accnts}" var="acc" >
<apex:column >
<apex:actionRegion >
<apex:outputLink >
<apex:outputField value="{!acc.Name}">
<apex:actionSupport event="onclick" action="{!show}" reRender="panel">
<apex:param assignTo="{!accName}" value="{!acc.Name}"/>
</apex:actionSupport>
</apex:outputField>
</apex:outputLink>
</apex:actionRegion>
</apex:column>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!accnts}" var="acc" >
<apex:column >
<apex:actionRegion >
<apex:outputLink >
<apex:outputField value="{!acc.Name}">
<apex:actionSupport event="onclick" action="{!show}" reRender="panel">
<apex:param assignTo="{!accName}" value="{!acc.Name}"/>
</apex:actionSupport>
</apex:outputField>
</apex:outputLink>
</apex:actionRegion>
</apex:column>
</apex:pageBlockTable>
<apex:param assignTo="{!accName}" value="{!acc.Name}"/>
to this
Hope this helps.
Try this once