I used apex:param but it doesn't pass objects

<apex:param value="{!a.Id}" name="AIs" assignTo="{!AId}"/>
  • 2
    <apex:param value="{!a.Id}" name="AIs" assignTo="{!AId}"/>
    – satishh
    Oct 4, 2016 at 7:50
  • 2
    if you define the object in the class and then use it on the page, it will bind automatically. Oct 4, 2016 at 7:52
  • This should work. You are missing the rerender attribute in your parent component. Oct 4, 2016 at 7:59

1 Answer 1


You can use the Id passed via param and then query the account on the controller. Or else you as Guy mentioned in the comments you can declare an instance of Account and use this instance on the page, and the updated values will be available on the page.

public class SampleClass{

Account accountObj{get; set;}


<apex:inputText value={!accountObj.Name}/>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .