You need to sign in to do that
Don't have an account?
Priyanka Reddy 74
cant pass values to apex controller from visualforce using action support
Hi,
Im trying to pass values from vf page to apex controller on selecting radio button can any one help me why values are not passing and what wrong i made.
Thanks in advance
Im trying to pass values from vf page to apex controller on selecting radio button can any one help me why values are not passing and what wrong i made.
public static string checkedname{get;set;} public void getSelectedInfo(){ system.debug('Selected name '+checkedname); }
<apex:repeat value="{!am.names}" var="n"> <td> <input type="radio" name="name" value="{!n}"/> <apex:actionsupport event="onclick" action="{!getSelectedInfo}"> <apex:param assignTo="{!checkedname}" name="checkedname" value="{!n}" /> </apex:actionsupport> {!n} </td> </apex:repeat>
Thanks in advance
Anudeep (Salesforce Developers)
Here is a working example of <apex:param/> with action support