• Kishore Ravi 2
  • 0 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 0
Hi Experts,

Am trying to call a method into VF, but am getting the below error
User-added image

here is my class

Public class RBGeneratorController{
List<account> selectacct;

Public List<account> getAllAccounts()
    List<account> allaccts = [Select ID,Name, Industry, Type, Billingstreet from Account limit 5];
   return allaccts;

Public void selectacct()
    String selaccountid = System.currentPagereference().getParameters().get('accid');
    Account acc = [Select ID,Name, Industry, Type, Billingstreet from Account where Id=:selaccountid];
    selectacct =  new List<account>();
//Public List<account> getselectedAccount()
 //   return selectacct;

here is VF page

<apex:pageblock id="PB" title="Available Generators">
               <apex:pageblocktable id="PBT" value="{!AllAccounts}" var="allaccts">
                    <apex:column headervalue="Generatos">                    
                       <apex:actionsupport action="{!selectacct}" event="onclick" rerender="allcons">  
                        <input type="radio" />                    
                            <apex:param name="accid" value="{!allcon.Id}">
                    <apex:column headervalue="Name">
                        <apex:outputfield value="{!allcon.Name}">
                    <apex:column headervalue="Industry">
                        <apex:outputfield value="{!allcon.Industry}">
                    <apex:column headervalue="Type">
                        <apex:outputfield value="{!allcon.Type}">
                    <apex:column headervalue="BillingStreet">
                        <apex:outputfield value="{!allcon.Billingstreet}">



please help me through this

Thank you