Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in Salesforce by (11.9k points)

So I have this in the page:

< apex:commandButton id="songdbabc" value="Synch from song db" action="{!sendingSign}" /> 

and this in the controller:

public PageReference  sendingSign(){

    System.debug(' message ');

    return null;

}

But everytime I press the button there isn`t any message in the "Log" I mean the action is not executed , any idea?

1 Answer

0 votes
by (32.1k points)
Do you have another variable or function with the same name? I mean public String sendingSign {get; set;} or maybe public String getSendingSign()? These would "shadow" your action function. Do you have more than 1 controller extension in <apex:page> tag? they'd be checked for matching function names from right to left (so if you have few classes maybe it's calling the match from a class you're not looking at)

Open up your browser's JS console/network panel, see if there's any traffic recorded at all when you click the button...

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...