function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dhwanika JoshiDhwanika Joshi 

I want to pass a string value to a controller method every time it is called by apex:repeat

I have a controller method which returns a list based on a dynamic SOQL query. This method is called by apex:repeat, which iterates over the returned list and displays checkboxes accordingly. For each apex:repeat, I want to pass a different String keyword which is used for the SOQL query. Is there a way how this is possible. 

Can anyone suggest a solution?
Jack Yu@TokyoJack Yu@Tokyo
Hi 
you can bind a apex:commandButton to excute Apex method in apex:repeat,  and you can pass parameter to apex class by <apex:param> Tag. 

please see url below.
https://success.salesforce.com/answers?id=9063A000000e0CvQAI